From 8e3d26a9e363e5693e364e10660cb1310558bdc3 Mon Sep 17 00:00:00 2001 From: aozhiwei Date: Tue, 22 Aug 2023 13:45:02 +0800 Subject: [PATCH] 1 --- webapp/controller/ShopController.class.php | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/webapp/controller/ShopController.class.php b/webapp/controller/ShopController.class.php index bf13b534..9a281228 100644 --- a/webapp/controller/ShopController.class.php +++ b/webapp/controller/ShopController.class.php @@ -146,6 +146,13 @@ class ShopController extends BaseAuthedController { $goodsMeta['item_num'] ); } + switch ($tokenType) { + case mt\Shop::TOKEN_TYPE_DIAMOND: + { + myself()->_incV(TN_TOTAL_DIAMOND_CONSUME, 0, $goodsNum * $price); + } + break; + } $propertyChgService->addUserChg(); $this->_rspData( array(