This commit is contained in:
songliang 2023-07-14 20:07:04 +08:00
parent 5f2d3b693c
commit ed070d49dd
2 changed files with 26 additions and 1 deletions

View File

@ -491,6 +491,10 @@ class MarketController extends BaseAuthedController
$this->_rspErr(1, 's_price not found'); $this->_rspErr(1, 's_price not found');
return; return;
} }
if (!is_numeric($s_price)) {
$this->_rspErr(1, 's_price must be number');
return;
}
if ($s_price <= 0) { if ($s_price <= 0) {
$this->_rspErr(1, 's_price must > 0'); $this->_rspErr(1, 's_price must > 0');
return; return;
@ -501,6 +505,10 @@ class MarketController extends BaseAuthedController
$this->_rspErr(1, 'amount not found'); $this->_rspErr(1, 'amount not found');
return; return;
} }
if (!is_numeric($amount)) {
$this->_rspErr(1, 'amount must be number');
return;
}
if ($amount <= 0) { if ($amount <= 0) {
$this->_rspErr(1, 'amount must > 0'); $this->_rspErr(1, 'amount must > 0');
return; return;
@ -641,6 +649,14 @@ class MarketController extends BaseAuthedController
{ {
$idx = getReqVal('idx', ''); $idx = getReqVal('idx', '');
$s_price = getReqVal('s_price', ''); $s_price = getReqVal('s_price', '');
if (empty($s_price)) {
$this->_rspErr(1, 's_price not found');
return;
}
if (!is_numeric($s_price)) {
$this->_rspErr(1, 's_price must be number');
return;
}
$address = $this->_getAddress(); $address = $this->_getAddress();
if (!$address) { if (!$address) {
@ -689,6 +705,14 @@ class MarketController extends BaseAuthedController
$idx = getReqVal('idx', ''); $idx = getReqVal('idx', '');
$s_price = getReqVal('s_price', ''); $s_price = getReqVal('s_price', '');
if (empty($s_price)) {
$this->_rspErr(1, 's_price not found');
return;
}
if (!is_numeric($s_price)) {
$this->_rspErr(1, 's_price not number');
return;
}
$goods = $this->getGoodsByIdx($idx); $goods = $this->getGoodsByIdx($idx);
if (!$goods) { if (!$goods) {

View File

@ -66,6 +66,7 @@ class MarketSellOrderOk extends MarketCallbackBase
't_market_store', 't_market_store',
array( array(
'token_id' => $tokenId, 'token_id' => $tokenId,
'order_id' => 0,
'o_link' => $orderId, 'o_link' => $orderId,
'nft_token' => $nftToken, 'nft_token' => $nftToken,
'status' => 0, 'status' => 0,