This commit is contained in:
aozhiwei 2023-08-02 16:10:16 +08:00
parent 2cbe0f6d5e
commit d9f7552c10

View File

@ -197,10 +197,19 @@ class ShopController extends BaseAuthedController {
$this->_rspErr(1, 'paramater error fiat'); $this->_rspErr(1, 'paramater error fiat');
return; return;
} }
if (!$fiatAmount != 'USD') { if (!$fiatAmount + 0.00001 < $goodsMeta['price']) {
$this->_rspErr(1, 'paramater error fiatAmount'); $this->_rspErr(1, 'paramater error fiatAmount');
return; return;
} }
if (!in_array($crypto,
array(
'CEG',
'ETH'
)
)) {
$this->_rspErr(1, 'paramater error crypto');
return;
}
} }
public function queryInAppBalance() public function queryInAppBalance()