1
This commit is contained in:
parent
f374c6b8da
commit
c0cf8fd24e
@ -286,16 +286,16 @@ class BlockChainController extends BaseAuthedController {
|
||||
$num = getReqVal('num', 0);
|
||||
$tokenType = getReqVal('token_type', '');
|
||||
if (!is_numeric($num)) {
|
||||
$this->_rspErr(1, "num is invalid, {$num}");
|
||||
myself()->_rspErr(1, "num is invalid, {$num}");
|
||||
return;
|
||||
}
|
||||
if ($num <= 0) {
|
||||
$this->_rspErr(1, "num is invalid, {$num}");
|
||||
myself()->_rspErr(1, "num is invalid, {$num}");
|
||||
return;
|
||||
}
|
||||
$currency = '';
|
||||
$price = BlockChainService::formatCurrency($num);
|
||||
|
||||
$price = $this->normalizeWeb3Price($num);
|
||||
$itemId = V_ITEM_DIAMOND;
|
||||
$itemCount = $num;
|
||||
|
||||
@ -317,7 +317,7 @@ class BlockChainController extends BaseAuthedController {
|
||||
)),
|
||||
));
|
||||
|
||||
$this->_rspData(
|
||||
myself()->_rspData(
|
||||
array(
|
||||
'trans_id' => $rspObj['trans_id'],
|
||||
'params' => $rspObj['params'],
|
||||
|
Loading…
x
Reference in New Issue
Block a user