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