|
@@ -54,7 +54,7 @@ class UserLoginLogic |
|
@@ -54,7 +54,7 @@ class UserLoginLogic |
|
54
|
$this->fail('系统错误,请联系管理员');
|
54
|
$this->fail('系统错误,请联系管理员');
|
|
55
|
}
|
55
|
}
|
|
56
|
//写入日志
|
56
|
//写入日志
|
|
57
|
- Common::set_user_login(['user_id'=>$info['id'],'ip'=>request()->ip()]);
|
57
|
+ Common::set_user_login(['user_id'=>$info['id'],'ip'=>request()->ip(),'project_id'=>$info['project_id']]);
|
|
58
|
return $this->success($info);
|
58
|
return $this->success($info);
|
|
59
|
}
|
59
|
}
|
|
60
|
|
60
|
|
|
@@ -68,23 +68,23 @@ class UserLoginLogic |
|
@@ -68,23 +68,23 @@ class UserLoginLogic |
|
68
|
$current_url = url()->current();
|
68
|
$current_url = url()->current();
|
|
69
|
$refer_url = url()->previous();
|
69
|
$refer_url = url()->previous();
|
|
70
|
if ($current_url == $refer_url) {
|
70
|
if ($current_url == $refer_url) {
|
|
71
|
- Common::set_user_login(['user_id'=>0, 'ip'=>request()->ip(), 'project_id' => $this->param['project_id'] ?: 0,'remark' => ' - -|' . $refer_url]);
|
71
|
+ Common::set_user_login(['user_id'=>0, 'ip'=>request()->ip(), 'project_id' => $this->param['project_id'] ?? 0,'remark' => ' - -|' . $refer_url]);
|
|
72
|
echo ' - -';
|
72
|
echo ' - -';
|
|
73
|
exit;
|
73
|
exit;
|
|
74
|
}
|
74
|
}
|
|
75
|
if (strpos($refer_url, 'www.quanqiusou.cn') === false && strpos($refer_url, 'crm.globalso.com') === false && strpos($refer_url, 'crm.globalso.com') === false) {
|
75
|
if (strpos($refer_url, 'www.quanqiusou.cn') === false && strpos($refer_url, 'crm.globalso.com') === false && strpos($refer_url, 'crm.globalso.com') === false) {
|
|
76
|
- Common::set_user_login(['user_id'=>0, 'ip'=>request()->ip(), 'project_id' => $this->param['project_id'] ?: 0,'remark' => ' 来源错误|' . $refer_url]);
|
76
|
+ Common::set_user_login(['user_id'=>0, 'ip'=>request()->ip(), 'project_id' => $this->param['project_id'] ?? 0,'remark' => ' 来源错误|' . $refer_url]);
|
|
77
|
echo '来源错误';
|
77
|
echo '来源错误';
|
|
78
|
exit;
|
78
|
exit;
|
|
79
|
}
|
79
|
}
|
|
80
|
if (!$this->param['project_id']) {
|
80
|
if (!$this->param['project_id']) {
|
|
81
|
- Common::set_user_login(['user_id'=>0, 'ip'=>request()->ip(), 'project_id' => $this->param['project_id'] ?: 0,'remark' => ' 没有传入链接|' . $refer_url]);
|
81
|
+ Common::set_user_login(['user_id'=>0, 'ip'=>request()->ip(), 'project_id' => $this->param['project_id'] ?? 0,'remark' => ' 没有传入链接|' . $refer_url]);
|
|
82
|
echo '没有连接';
|
82
|
echo '没有连接';
|
|
83
|
exit;
|
83
|
exit;
|
|
84
|
}
|
84
|
}
|
|
85
|
$has_user = User::where('project_id', $this->param['project_id'])->orderBy('id', 'asc')->first();
|
85
|
$has_user = User::where('project_id', $this->param['project_id'])->orderBy('id', 'asc')->first();
|
|
86
|
if (empty($has_user->id)) {
|
86
|
if (empty($has_user->id)) {
|
|
87
|
- Common::set_user_login(['user_id'=>0, 'ip'=>request()->ip(), 'project_id' => $this->param['project_id'] ?: 0,'remark' => ' 该项目未找到注册账号|' . $refer_url]);
|
87
|
+ Common::set_user_login(['user_id'=>0, 'ip'=>request()->ip(), 'project_id' => $this->param['project_id'] ?? 0,'remark' => ' 该项目未找到注册账号|' . $refer_url]);
|
|
88
|
echo '该项目未找到注册账号';
|
88
|
echo '该项目未找到注册账号';
|
|
89
|
exit;
|
89
|
exit;
|
|
90
|
}
|
90
|
}
|