添加钻石消费记录

This commit is contained in:
aozhiwei 2023-08-22 13:59:45 +08:00
parent 8e3d26a9e3
commit 92b6b66455
3 changed files with 4 additions and 0 deletions

View File

@ -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 {

View File

@ -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:

View File

@ -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(