fix: king request 6

This commit is contained in:
caoqianming 2024-04-25 21:46:18 +08:00
parent 932ef2d2c8
commit a4cecb86cb
1 changed files with 1 additions and 1 deletions

View File

@ -77,7 +77,7 @@ class KingClient(HandleLogMixin):
if ret['code'] != 0:
if need_auth and ret['code'] in [-1, -2]: # 认证失败
self._get_token()
self.request(url, method, params, json, timeout, raise_exception, need_auth=False)
self.request(url, method, params, json, timeout, raise_exception)
return
err_detail = dict(detail=f"亚控错误: {ret['message']}",
code='king_' + str(ret['code']))