diff --git a/apps/third/king/k.py b/apps/third/king/k.py index 9371c00d..393c2eb6 100644 --- a/apps/third/king/k.py +++ b/apps/third/king/k.py @@ -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)