diff --git a/webapp/controller/BagController.class.php b/webapp/controller/BagController.class.php index 60ce54ec..20940c91 100644 --- a/webapp/controller/BagController.class.php +++ b/webapp/controller/BagController.class.php @@ -145,6 +145,7 @@ class BagController extends BaseAuthedController { 'val' => mt\Parameter::getVal('rename_diamond_cost', 0) ]; LogService::consumeDiamond($event); + myself()->_incV(TN_TOTAL_DIAMOND_CONSUME, 0, mt\Parameter::getVal('rename_diamond_cost', 0)); } $this->propertyChgService->addUserChg(); } else { diff --git a/webapp/controller/DailySelectionController.class.php b/webapp/controller/DailySelectionController.class.php index 18a67f12..aa9ef920 100644 --- a/webapp/controller/DailySelectionController.class.php +++ b/webapp/controller/DailySelectionController.class.php @@ -215,6 +215,7 @@ class DailySelectionController extends BaseAuthedController { case mt\Shop::TOKEN_TYPE_DIAMOND: { LogService::consumeDiamond($event); + myself()->_incV(TN_TOTAL_DIAMOND_CONSUME, 0, $costItems[0]['item_num']); } break; default: diff --git a/webapp/controller/PassController.class.php b/webapp/controller/PassController.class.php index 297fb886..20fd8704 100644 --- a/webapp/controller/PassController.class.php +++ b/webapp/controller/PassController.class.php @@ -276,6 +276,7 @@ class PassController extends BaseAuthedController 'val' => \mt\Parameter::getVal('battlepass_price', '') ]; LogService::consumeDiamond($event); + myself()->_incV(TN_TOTAL_DIAMOND_CONSUME, 0, \mt\Parameter::getVal('battlepass_price', '')); //激活白金通行证状态 User::update(array( 'activated' => 1, @@ -315,6 +316,7 @@ class PassController extends BaseAuthedController 'val' => $celPrice ]; LogService::consumeDiamond($event); + myself()->_incV(TN_TOTAL_DIAMOND_CONSUME, 0, $celPrice); //提升通行证等级 $items = array( array(