From d74f4d5736cf5b8a5a18bc98124e20d32ec261c6 Mon Sep 17 00:00:00 2001 From: songliang Date: Wed, 21 Jun 2023 20:31:43 +0800 Subject: [PATCH] ... --- webapp/controller/ShopController.class.php | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/webapp/controller/ShopController.class.php b/webapp/controller/ShopController.class.php index 99056526..5bb579f3 100644 --- a/webapp/controller/ShopController.class.php +++ b/webapp/controller/ShopController.class.php @@ -823,6 +823,8 @@ class ShopController extends BaseAuthedController $row = mt\ShopGoods::get($id); + $goods_id = $row['goods_id']; + $desired_token_type = $row['token_type']; $check_token_type = splitStr1($desired_token_type); $token_pos = array_search($token_type, $check_token_type, true); @@ -965,7 +967,7 @@ class ShopController extends BaseAuthedController Transaction::BUY_GOODS_ACTION_TYPE, $price, $item_id, - $item_count, + $item_count ); BcOrder::upsert( $response['trans_id'], array( @@ -1080,6 +1082,11 @@ class ShopController extends BaseAuthedController ); } + + private function buyGoodsFree() { + + } + private function decDailySelectionItem($idx, $grid, $count) { $self = myself();