跟进状态修改、登录返回code、客户统计
This commit is contained in:
@@ -40,11 +40,14 @@ class JwtUtil
|
||||
try {
|
||||
return JWT::decode($token, new Key($config['secret'], $config['algorithm']));
|
||||
} catch (ExpiredException $e) {
|
||||
throw new BusinessException('Token 已过期', 401);
|
||||
return Util::fail('','Token 已过期',401);
|
||||
// throw new BusinessException('Token 已过期', 401);
|
||||
} catch (SignatureInvalidException $e) {
|
||||
throw new BusinessException('Token 无效', 401);
|
||||
return Util::fail('','Token 无效',401);
|
||||
// throw new BusinessException('Token 无效', 401);
|
||||
} catch (\Exception $e) {
|
||||
throw new BusinessException('鉴权失败', 401);
|
||||
return Util::fail('','鉴权失败',401);
|
||||
// throw new BusinessException('鉴权失败', 401);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user