...
This commit is contained in:
parent
1ba8930cb8
commit
d46dda27af
@ -970,12 +970,15 @@ class MarketController extends BaseAuthedController
|
||||
)
|
||||
);
|
||||
|
||||
// nft order id 统一改为 o_link 字段
|
||||
$o_link = $orderId;
|
||||
|
||||
$conn = myself()->_getSelfMysql();
|
||||
|
||||
// 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' => $o_link));
|
||||
if (empty($chk)) {
|
||||
$this->_rspErr(1, 'not found order, orderId=' . $orderId);
|
||||
$this->_rspErr(1, 'not found order, orderId=' . $o_link);
|
||||
return;
|
||||
}
|
||||
if ($chk['status'] == '0') {
|
||||
@ -983,7 +986,7 @@ class MarketController extends BaseAuthedController
|
||||
$conn,
|
||||
't_market_store',
|
||||
array(
|
||||
'o_link' => $orderId,
|
||||
'o_link' => $o_link,
|
||||
),
|
||||
array(
|
||||
'status' => 2,
|
||||
@ -994,7 +997,7 @@ class MarketController extends BaseAuthedController
|
||||
$record = array(
|
||||
'createtime' => myself()->_getNowTime(),
|
||||
'order_id' => $chk['idx'],
|
||||
'o_link' => $orderId,
|
||||
'o_link' => $o_link,
|
||||
'seller' => $seller,
|
||||
'buyer' => $buyer,
|
||||
'tokenid' => $tokenId,
|
||||
|
Loading…
x
Reference in New Issue
Block a user