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(