fix: return self.request

This commit is contained in:
caoqianming 2024-04-26 10:47:55 +08:00
parent 070ccd72f4
commit 7642f23423
1 changed files with 2 additions and 2 deletions

View File

@ -77,8 +77,8 @@ 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)
return
return self.request(url, method, params, json, timeout, raise_exception, need_auth)
err_detail = dict(detail=f"亚控错误: {ret['message']}",
code='king_' + str(ret['code']))
self.handle_log(result='fail', response=ret)