This commit is contained in:
aozhiwei 2023-08-07 14:41:51 +08:00
parent baf44c0391
commit 089fe16bbc

View File

@ -377,12 +377,12 @@ class BlockChainController extends BaseAuthedController {
$goodsUuid = getReqVal('goods_uuid', ''); $goodsUuid = getReqVal('goods_uuid', '');
$price = getReqVal('price', ''); $price = getReqVal('price', '');
if (empty($s_price)) { if (empty($price)) {
myself()-_rspErr(1, 's_price not found'); myself()-_rspErr(1, 'price not found');
return; return;
} }
if (!is_numeric($s_price)) { if (!is_numeric($price)) {
myself()-_rspErr(1, 's_price not number'); myself()-_rspErr(1, 'price not number');
return; return;
} }
@ -400,7 +400,7 @@ class BlockChainController extends BaseAuthedController {
$response = services\BlockChainService::gameItemMarketBuy( $response = services\BlockChainService::gameItemMarketBuy(
Transaction::BUY_GOODS_FROM_MARKET_ACTION_TYPE, Transaction::BUY_GOODS_FROM_MARKET_ACTION_TYPE,
$goods['owner_address'], $goods['owner_address'],
$goods['s_price'], $goods['price'],
$goods['item_id'], $goods['item_id'],
$goods['amount'] $goods['amount']
); );