fix: kingclient set token bug
This commit is contained in:
parent
b0dfb020ce
commit
97f8a1e143
|
@ -48,7 +48,6 @@ class KingClient(HandleLogMixin):
|
|||
cache.set('king_token', res['Authorization'], timeout=None)
|
||||
except Exception:
|
||||
cache.set('king_token', current_val, timeout=None)
|
||||
cache.set('king_token', res['Authorization'], timeout=None)
|
||||
|
||||
def request(self, url: str, method: str = 'post', params=dict(), json=dict(), timeout=20, raise_exception=True, need_auth=True):
|
||||
if not self.king_enabled:
|
||||
|
|
Loading…
Reference in New Issue