正在显示
1 个修改的文件
包含
4 行增加
和
6 行删除
| @@ -39,8 +39,6 @@ class UserLoginLogic | @@ -39,8 +39,6 @@ class UserLoginLogic | ||
| 39 | $info = $this->verifyAccount(); | 39 | $info = $this->verifyAccount(); |
| 40 | //验证角色是否被禁用+获取项目详情 | 40 | //验证角色是否被禁用+获取项目详情 |
| 41 | $info = $this->verifyRole($info); | 41 | $info = $this->verifyRole($info); |
| 42 | - var_dump($info); | ||
| 43 | - die(); | ||
| 44 | if(isset($info['token']) && !empty($info['token'])){ | 42 | if(isset($info['token']) && !empty($info['token'])){ |
| 45 | //清除上一次用户缓存 | 43 | //清除上一次用户缓存 |
| 46 | Cache::pull($info['token']); | 44 | Cache::pull($info['token']); |
| @@ -70,23 +68,23 @@ class UserLoginLogic | @@ -70,23 +68,23 @@ class UserLoginLogic | ||
| 70 | $current_url = url()->current(); | 68 | $current_url = url()->current(); |
| 71 | $refer_url = url()->previous(); | 69 | $refer_url = url()->previous(); |
| 72 | if ($current_url == $refer_url) { | 70 | if ($current_url == $refer_url) { |
| 73 | - 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]); |
| 74 | echo ' - -'; | 72 | echo ' - -'; |
| 75 | exit; | 73 | exit; |
| 76 | } | 74 | } |
| 77 | 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) { |
| 78 | - 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]); |
| 79 | echo '来源错误'; | 77 | echo '来源错误'; |
| 80 | exit; | 78 | exit; |
| 81 | } | 79 | } |
| 82 | if (!$this->param['project_id']) { | 80 | if (!$this->param['project_id']) { |
| 83 | - 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]); |
| 84 | echo '没有连接'; | 82 | echo '没有连接'; |
| 85 | exit; | 83 | exit; |
| 86 | } | 84 | } |
| 87 | $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(); |
| 88 | if (empty($has_user->id)) { | 86 | if (empty($has_user->id)) { |
| 89 | - 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]); |
| 90 | echo '该项目未找到注册账号'; | 88 | echo '该项目未找到注册账号'; |
| 91 | exit; | 89 | exit; |
| 92 | } | 90 | } |
-
请 注册 或 登录 后发表评论