This commit is contained in:
aozhiwei 2023-08-08 16:53:47 +08:00
parent 48ffcea204
commit 9caf11a82b
2 changed files with 8 additions and 8 deletions

View File

@ -302,9 +302,9 @@ class BlockChainController extends BaseAuthedController {
if (!in_array( if (!in_array(
$tokenType, $tokenType,
array( array(
'CEG', BlockChainService::CURRENCY_CEG,
'USDC', BlockChainService::CURRENCY_USDC,
'USDT' BlockChainService::CURRENCY_USDT,
) )
)) { )) {
myself()->_rspErr(1, "token_type error"); myself()->_rspErr(1, "token_type error");
@ -314,8 +314,8 @@ class BlockChainController extends BaseAuthedController {
if (in_array( if (in_array(
$tokenType, $tokenType,
array( array(
'USDC', BlockChainService::CURRENCY_USDC,
'USDT' BlockChainService::CURRENCY_USDT,
) )
)) { )) {
$rate = 10; $rate = 10;

View File

@ -137,9 +137,9 @@ class MallController extends BaseAuthedController {
if (!in_array( if (!in_array(
$currency, $currency,
array( array(
'CEG', BlockChainService::CURRENCY_CEG,
'USDC', BlockChainService::CURRENCY_USDC,
'USDT' BlockChainService::CURRENCY_USDT,
) )
)) { )) {
$this->_rspErr(1, 'paramater error currency'); $this->_rspErr(1, 'paramater error currency');