1
This commit is contained in:
parent
baf44c0391
commit
089fe16bbc
@ -377,12 +377,12 @@ class BlockChainController extends BaseAuthedController {
|
||||
|
||||
$goodsUuid = getReqVal('goods_uuid', '');
|
||||
$price = getReqVal('price', '');
|
||||
if (empty($s_price)) {
|
||||
myself()-_rspErr(1, 's_price not found');
|
||||
if (empty($price)) {
|
||||
myself()-_rspErr(1, 'price not found');
|
||||
return;
|
||||
}
|
||||
if (!is_numeric($s_price)) {
|
||||
myself()-_rspErr(1, 's_price not number');
|
||||
if (!is_numeric($price)) {
|
||||
myself()-_rspErr(1, 'price not number');
|
||||
return;
|
||||
}
|
||||
|
||||
@ -400,7 +400,7 @@ class BlockChainController extends BaseAuthedController {
|
||||
$response = services\BlockChainService::gameItemMarketBuy(
|
||||
Transaction::BUY_GOODS_FROM_MARKET_ACTION_TYPE,
|
||||
$goods['owner_address'],
|
||||
$goods['s_price'],
|
||||
$goods['price'],
|
||||
$goods['item_id'],
|
||||
$goods['amount']
|
||||
);
|
||||
|
Loading…
x
Reference in New Issue
Block a user