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