...
This commit is contained in:
parent
5f2d3b693c
commit
ed070d49dd
@ -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) {
|
||||||
|
@ -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,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user