fix: kingclient set token bug

This commit is contained in:
caoqianming 2024-06-19 15:54:45 +08:00
parent b0dfb020ce
commit 97f8a1e143
1 changed files with 0 additions and 1 deletions

View File

@ -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: