优化登陆

master
chenzhi 4 years ago
parent 12f4cda850
commit 343ecc8587

@ -127,6 +127,7 @@ return array(
"tab_settleup_marketorder",
"tab_market_altogether",
"tab_cmd_tasks",
"tab_operation_log"
"tab_operation_log",
"sys_action_log"
]
);

@ -101,7 +101,10 @@ class PublicController extends \Think\Controller
'last_login_time' => NOW_TIME,
'last_login_ip' => get_client_ip(1),
);
if(!IS_SUBSITE){
$Member->save($data);
}
$adminData = getAdminData($member['uid']);
$groupId = getGameGroup($member['uid']);

@ -69,7 +69,9 @@ class MemberModel extends Model {
'last_login_time' => NOW_TIME,
'last_login_ip' => get_client_ip(1),
);
if(!IS_SUBSITE){
$this->save($data);
}
$adminData = getAdminData($user['uid']);
$groupId = getGameGroup($user['uid']);

@ -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'])) {
//解析行为

@ -79,7 +79,10 @@ class MemberModel extends Model{
'last_login_time' => NOW_TIME,
'last_login_ip' => get_client_ip(1),
);
if(!IS_SUBSITE){
$this->save($data);
}
/* 记录登录SESSION和COOKIES */
$auth = array(

Loading…
Cancel
Save