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)