From 8276a8aa7d55c29e3b77a2437a90a2357f2b87c7 Mon Sep 17 00:00:00 2001 From: aozhiwei Date: Thu, 8 Aug 2024 11:55:35 +0800 Subject: [PATCH] 1 --- webapp/controller/BaseController.class.php | 17 +---------------- 1 file changed, 1 insertion(+), 16 deletions(-) diff --git a/webapp/controller/BaseController.class.php b/webapp/controller/BaseController.class.php index 08f28bde..54800748 100644 --- a/webapp/controller/BaseController.class.php +++ b/webapp/controller/BaseController.class.php @@ -240,22 +240,7 @@ class BaseController { public function _addLogEx($accountId, $type, $subtype, $params) { - $fieldsKv = array( - 'account_id' => $accountId, - '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()->_getMysql($accountId), - 't_game_log', - $fieldsKv - ); + myself()->_addLogEx($accountId, $type, $subtype, $params); } public function _getAccountIdByAddress($address)