From d46dda27affe698d3ec225f6bc9e550960d6e43c Mon Sep 17 00:00:00 2001 From: songliang Date: Fri, 14 Jul 2023 11:28:55 +0800 Subject: [PATCH] ... --- webapp/controller/MarketController.class.php | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/webapp/controller/MarketController.class.php b/webapp/controller/MarketController.class.php index ea7019ac..1a674e1c 100644 --- a/webapp/controller/MarketController.class.php +++ b/webapp/controller/MarketController.class.php @@ -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,