fix: KingClient 添加日志3

This commit is contained in:
caoqianming 2024-06-19 18:23:04 +08:00
parent 98d10405e4
commit 1d4239c28a
1 changed files with 2 additions and 1 deletions

View File

@ -78,6 +78,7 @@ class KingClient(HandleLogMixin):
if 'code' in ret:
if ret['code'] != 0:
if need_auth and ret['code'] in [-1, -2] and ret['message'] != 'failed': # 认证失败
# 如果这里没有判断准确可能会导致多次触发login
myLogger.error(f"亚控认证失败: {url}-{ret}")
is_ok, _ = self._get_token()
if is_ok: