From 4d0018157c1d672f62c7dba6c63d00ac32f2f00f Mon Sep 17 00:00:00 2001 From: aozhiwei Date: Thu, 8 Aug 2024 11:51:24 +0800 Subject: [PATCH] 1 --- .../controller/BaseAuthedController.class.php | 30 ++++--------------- 1 file changed, 6 insertions(+), 24 deletions(-) diff --git a/webapp/controller/BaseAuthedController.class.php b/webapp/controller/BaseAuthedController.class.php index c4d5e086..29bc69e5 100644 --- a/webapp/controller/BaseAuthedController.class.php +++ b/webapp/controller/BaseAuthedController.class.php @@ -599,10 +599,12 @@ class BaseAuthedController extends BaseController { break; default: { - $this->_addLog('additems', 'invalid_item', array( - 'param1' => $item['item_id'], - 'param2' => $item['item_num'], - )); + $this->_addLogEx($this->_getAccountId(), + 'additems', 'invalid_item', + array( + 'param1' => $item['item_id'], + 'param2' => $item['item_num'], + )); } break; } @@ -759,26 +761,6 @@ class BaseAuthedController extends BaseController { ); } - public function _addLog($type, $subtype, $params) - { - $fieldsKv = array( - 'account_id' => $this->_getAccountId(), - 'type' => $type, - 'subtype' => $subtype, - 'param1' => getXVal($params, 'param1', ''), - 'param2' => getXVal($params, 'param2', ''), - 'param3' => getXVal($params, 'param3', ''), - 'param4' => getXVal($params, 'param4', ''), - 'createtime' => myself()->_getNowTime(), - 'modifytime' => myself()->_getNowTime() - ); - SqlHelper::insert( - myself()->_getSelfMysql(), - 't_game_log', - $fieldsKv - ); - } - public function _getV($x, $y, $defVal = 0) { return DynData::getV($x, $y, $defVal);