From 006e5bf05a78dd392e2dad6202045db006596ff2 Mon Sep 17 00:00:00 2001 From: aozhiwei Date: Mon, 7 Aug 2023 16:12:53 +0800 Subject: [PATCH] 1 --- webapp/controller/BlockChainController.class.php | 1 + webapp/services/BlockChainService.php | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/webapp/controller/BlockChainController.class.php b/webapp/controller/BlockChainController.class.php index ddae042f..072708f4 100644 --- a/webapp/controller/BlockChainController.class.php +++ b/webapp/controller/BlockChainController.class.php @@ -400,6 +400,7 @@ class BlockChainController extends BaseAuthedController { $rspObj = services\BlockChainService::gameItemMarketBuy( Transaction::BUY_GOODS_FROM_MARKET_ACTION_TYPE, $goods['seller_address'], + $goods['currency'], $goods['price'], $goods['item_id'], $goods['item_num'] diff --git a/webapp/services/BlockChainService.php b/webapp/services/BlockChainService.php index 74fd6732..91fbea09 100644 --- a/webapp/services/BlockChainService.php +++ b/webapp/services/BlockChainService.php @@ -103,7 +103,7 @@ class BlockChainService { c */ - public static function gameItemMarketBuy($actionType, $owner_address, $price, $itemId, $itemNum) + public static function gameItemMarketBuy($actionType, $owner_address, $currency, $price, $itemId, $itemNum) { if (!($actionType > Transaction::BUY_BEGIN_ACTION_TYPE && $actionType < Transaction::BUY_END_ACTION_TYPE)) { @@ -123,6 +123,7 @@ class BlockChainService { 'c' => 'GameItemMarket', 'a' => 'buy', 'account' => $account, + 'currency' => $currency, 'price' => $price, 'seller' => $owner_address, 'net_id' => NET_ID