diff --git a/webapp/controller/ActivityController.class.php b/webapp/controller/ActivityController.class.php index 1dfb31e..3b688eb 100644 --- a/webapp/controller/ActivityController.class.php +++ b/webapp/controller/ActivityController.class.php @@ -1,8 +1,11 @@ triggerConsume($account_id, $cur_cost); @@ -1853,6 +1858,7 @@ class ActivityController return; } + GameLog::Log('diamond cost: 2,'.$account_id.','.$count); $rechargeactivity = new classes\RechargeActivity(); $rechargeactivity->triggerConsume($account_id, $count); } else { @@ -1989,7 +1995,7 @@ class ActivityController } if ($costid == 10003) { - if ($cost >= $rowuser['diamond_num']) { + if ($cost > $rowuser['diamond_num']) { phpcommon\sendError(ERR_USER_BASE + 3, '钻石不足'); return; } else { @@ -2015,6 +2021,7 @@ class ActivityController if ($costid == 10003) { $rechargeactivity = new classes\RechargeActivity(); $rechargeactivity->triggerConsume($account_id, $cost); + GameLog::Log('diamond cost: 3,'.$account_id.','.$cost); } } $rows = $conn->execQuery( diff --git a/webapp/controller/EquipController.class.php b/webapp/controller/EquipController.class.php index 9426a38..8c278fd 100644 --- a/webapp/controller/EquipController.class.php +++ b/webapp/controller/EquipController.class.php @@ -1,8 +1,11 @@ triggerConsume($account_id, $diamond_cost); + GameLog::Log('diamond cost: 3,'.$account_id.','.$diamond_cost); } $active_time = $row['active_time']; if ($active_time + $sub_time <= time() || diff --git a/webapp/controller/FesActivityController.class.php b/webapp/controller/FesActivityController.class.php index 671aa6f..7210b73 100644 --- a/webapp/controller/FesActivityController.class.php +++ b/webapp/controller/FesActivityController.class.php @@ -1,8 +1,11 @@ triggerConsume($account_id, $us['condition']); + GameLog::Log('diamond cost: 4,'.$account_id.','.$us['condition']); } else { phpcommon\sendError(ERR_USER_BASE + 4, '奖励不可领'); return; diff --git a/webapp/controller/PayController.class.php b/webapp/controller/PayController.class.php index 26ad9f6..f2d68ad 100644 --- a/webapp/controller/PayController.class.php +++ b/webapp/controller/PayController.class.php @@ -1,8 +1,11 @@ triggerConsume($account_id, $diamond['coin_num']); + GameLog::Log('diamond cost: 5,'.$account_id.','.$diamond['coin_num']); } //首充礼包奖励 if ($diamond['shop_type'] == 4) { @@ -838,6 +842,7 @@ class PayController{ } $rechargeactivity = new classes\RechargeActivity(); $rechargeactivity->triggerConsume($account_id, $item['dprice']); + GameLog::Log('diamond cost: 6,'.$account_id.','.$item['dprice']); //添加通行证 $addreward = new classes\AddReward(); $addreward->addReward(10005, 1, $account_id); diff --git a/webapp/controller/ShopController.class.php b/webapp/controller/ShopController.class.php index 4a2f6ec..e0d2e16 100644 --- a/webapp/controller/ShopController.class.php +++ b/webapp/controller/ShopController.class.php @@ -1,7 +1,10 @@ triggerConsume($account_id, $coin_num); + GameLog::Log('diamond cost: 7,'.$account_id.','.$coin_num); } if ($tips == 3) { diff --git a/webapp/controller/SoloController.class.php b/webapp/controller/SoloController.class.php index ff9fe79..261d959 100644 --- a/webapp/controller/SoloController.class.php +++ b/webapp/controller/SoloController.class.php @@ -964,6 +964,7 @@ class SoloController ':modify_time' => time() ) ); + GameLog::Log('diamond cost: 8,'.$account_id.','.$costitem['item_num']); } else { $conn->execScript( 'UPDATE bag SET num=num-:subnum, modify_time=:modify_time ' .