This commit is contained in:
songliang 2023-06-30 15:38:09 +08:00
parent d48fb43e4b
commit 5b7cb8e1fb

View File

@ -780,7 +780,7 @@ class MarketController extends BaseController {
return ''; return '';
}; };
$conn = myself()->_getMysql(''); $conn = myself()->_getMarketMysql('');
$counts = $conn->execQuery( $counts = $conn->execQuery(
'SELECT count(*) as count FROM t_market_store '. 'SELECT count(*) as count FROM t_market_store '.
@ -952,7 +952,7 @@ class MarketController extends BaseController {
$signature = getReqVal('signature', ''); $signature = getReqVal('signature', '');
$net_id = getReqVal('net_id', ''); $net_id = getReqVal('net_id', '');
$conn = myself()->_getMysql(''); $conn = myself()->_getMarketMysql('');
$conn->execScript('DELETE FROM t_market_store WHERE '.'token_id=\''.$nft_token.'\''); $conn->execScript('DELETE FROM t_market_store WHERE '.'token_id=\''.$nft_token.'\'');
$this->_rspOk(); $this->_rspOk();
@ -1142,7 +1142,7 @@ class MarketController extends BaseController {
) )
); );
$conn = myself()->_getMysql(''); $conn = myself()->_getMarketMysql('');
// 1. check order status // 1. check order status
$chk = SqlHelper::selectOne($conn, 't_market_store', array('status','idx', 'c_name', 'token_type'), array('o_link' => $orderId)); $chk = SqlHelper::selectOne($conn, 't_market_store', array('status','idx', 'c_name', 'token_type'), array('o_link' => $orderId));
@ -1196,7 +1196,7 @@ class MarketController extends BaseController {
) )
); );
$conn = myself()->_getMysql(''); $conn = myself()->_getMarketMysql('');
// 1. check order status // 1. check order status
$chk = SqlHelper::selectOne($conn, 't_market_store', array('status'), array('o_link' => $orderId)); $chk = SqlHelper::selectOne($conn, 't_market_store', array('status'), array('o_link' => $orderId));
@ -1241,7 +1241,7 @@ class MarketController extends BaseController {
) )
); );
$conn = myself()->_getMysql(''); $conn = myself()->_getMarketMysql('');
// 1. check order status // 1. check order status
$chk = SqlHelper::selectOne($conn, 't_market_store', array('status'), array('o_link' => $orderId)); $chk = SqlHelper::selectOne($conn, 't_market_store', array('status'), array('o_link' => $orderId));
@ -1308,7 +1308,7 @@ class MarketController extends BaseController {
} }
private function attach_market_selling(&$row) { private function attach_market_selling(&$row) {
$conn = myself()->_getMysql(''); $conn = myself()->_getMarketMysql('');
$rows = $conn->execQuery( $rows = $conn->execQuery(
'SELECT * FROM t_market_store '. 'SELECT * FROM t_market_store '.
@ -1333,7 +1333,7 @@ class MarketController extends BaseController {
private function listMySelledNfts($account, $type) private function listMySelledNfts($account, $type)
{ {
$conn = myself()->_getMysql(''); $conn = myself()->_getMarketMysql('');
$rows = $conn->execQuery( $rows = $conn->execQuery(
'SELECT * FROM t_market_store '. 'SELECT * FROM t_market_store '.