$orderId, 'nftToken' => $nftToken, 'tokenId' => $tokenId, 'priceOld' => $priceOld, 'price' => $price, ), JSON_PRETTY_PRINT ) ); $conn = myself()->_getMysql(''); // 1. check order status $chk = SqlHelper::selectOne($conn, 't_market_store', array('status'), array('o_link' => $orderId)); if (empty($chk)) { $this->_rspErr(1, 'not found order, orderId=' . $orderId); return; } if ($chk['status'] == '0') { $r = SqlHelper::update( $conn, 't_market_store', array( 'o_link' => $orderId, ), array( 's_price' => $price, ) ); if ($r) { $this->_rspOk(); return; } } $this->_rspErr(1, 'price update failed, orderId=' . $orderId); } }