正在显示
1 个修改的文件
包含
2 行增加
和
1 行删除
| @@ -235,9 +235,10 @@ class LoginController extends BaseController | @@ -235,9 +235,10 @@ class LoginController extends BaseController | ||
| 235 | * @time :2023/8/24 17:37 | 235 | * @time :2023/8/24 17:37 |
| 236 | */ | 236 | */ |
| 237 | public function globalSo_v6_login(UserLoginLogic $logic){ | 237 | public function globalSo_v6_login(UserLoginLogic $logic){ |
| 238 | + try { | ||
| 238 | $common = new Common(); | 239 | $common = new Common(); |
| 239 | $arr = $common->decrypt(urldecode($this->param['token'])); | 240 | $arr = $common->decrypt(urldecode($this->param['token'])); |
| 240 | - if(empty($arr)){ | 241 | + }catch (\Exception $e){ |
| 241 | $this->response('非法请求!',Code::USER_ERROR); | 242 | $this->response('非法请求!',Code::USER_ERROR); |
| 242 | } | 243 | } |
| 243 | if (empty($arr['timestamp']) || time() - $arr['timestamp'] > 60) { | 244 | if (empty($arr['timestamp']) || time() - $arr['timestamp'] > 60) { |
-
请 注册 或 登录 后发表评论