From 343ecc85877eede03f50af405838b25c4277dcb6 Mon Sep 17 00:00:00 2001 From: chenzhi Date: Thu, 31 Dec 2020 18:40:05 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E7=99=BB=E9=99=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Application/Admin/Conf/config.php | 3 ++- Application/Admin/Controller/PublicController.class.php | 5 ++++- Application/Admin/Model/MemberModel.class.php | 4 +++- Application/Common/Common/function.php | 2 +- Application/Home/Model/MemberModel.class.php | 5 ++++- 5 files changed, 14 insertions(+), 5 deletions(-) diff --git a/Application/Admin/Conf/config.php b/Application/Admin/Conf/config.php index 90f82c3c5..2b3384f87 100644 --- a/Application/Admin/Conf/config.php +++ b/Application/Admin/Conf/config.php @@ -127,6 +127,7 @@ return array( "tab_settleup_marketorder", "tab_market_altogether", "tab_cmd_tasks", - "tab_operation_log" + "tab_operation_log", + "sys_action_log" ] ); \ No newline at end of file diff --git a/Application/Admin/Controller/PublicController.class.php b/Application/Admin/Controller/PublicController.class.php index 7273be80b..b1a5c93e8 100644 --- a/Application/Admin/Controller/PublicController.class.php +++ b/Application/Admin/Controller/PublicController.class.php @@ -101,7 +101,10 @@ class PublicController extends \Think\Controller 'last_login_time' => NOW_TIME, 'last_login_ip' => get_client_ip(1), ); - $Member->save($data); + if(!IS_SUBSITE){ + $Member->save($data); + } + $adminData = getAdminData($member['uid']); $groupId = getGameGroup($member['uid']); diff --git a/Application/Admin/Model/MemberModel.class.php b/Application/Admin/Model/MemberModel.class.php index cc4181628..d81965260 100644 --- a/Application/Admin/Model/MemberModel.class.php +++ b/Application/Admin/Model/MemberModel.class.php @@ -69,7 +69,9 @@ class MemberModel extends Model { 'last_login_time' => NOW_TIME, 'last_login_ip' => get_client_ip(1), ); - $this->save($data); + if(!IS_SUBSITE){ + $this->save($data); + } $adminData = getAdminData($user['uid']); $groupId = getGameGroup($user['uid']); diff --git a/Application/Common/Common/function.php b/Application/Common/Common/function.php index 04b978be9..0ce28e1f6 100644 --- a/Application/Common/Common/function.php +++ b/Application/Common/Common/function.php @@ -697,7 +697,7 @@ function action_log($action = null, $model = null, $record_id = null, $user_id = $data['remark'] = '操作url:' . $_SERVER['REQUEST_URI']; } - M('ActionLog')->add($data); + SM('ActionLog',"sys_")->add($data); if (!empty($action_info['rule'])) { //解析行为 diff --git a/Application/Home/Model/MemberModel.class.php b/Application/Home/Model/MemberModel.class.php index 222c54568..65ad1398f 100644 --- a/Application/Home/Model/MemberModel.class.php +++ b/Application/Home/Model/MemberModel.class.php @@ -79,7 +79,10 @@ class MemberModel extends Model{ 'last_login_time' => NOW_TIME, 'last_login_ip' => get_client_ip(1), ); - $this->save($data); + if(!IS_SUBSITE){ + $this->save($data); + } + /* 记录登录SESSION和COOKIES */ $auth = array(