跟进状态修改、登录返回code、客户统计

This commit is contained in:
2025-03-21 11:42:25 +08:00
parent 196a4a2001
commit 8b23f26dce
4 changed files with 67 additions and 10 deletions
+6 -3
View File
@@ -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);
}
}
}