跟进状态修改、登录返回code、客户统计
This commit is contained in:
@@ -56,7 +56,7 @@ class AuthMiddleware implements MiddlewareInterface
|
||||
|
||||
//需要登录并且未提供token
|
||||
if ($isLogin && (!$token || !str_starts_with($token, 'Bearer '))) {
|
||||
throw new BusinessException('请先登录', 302);
|
||||
return Util::fail('','请先登录',401);
|
||||
// throw new BusinessException('未提供 Token'.$isLogin, 401);
|
||||
}elseif(!$isLogin){
|
||||
return $handler($request);
|
||||
|
||||
Reference in New Issue
Block a user