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(