From 97f8a1e143a13aaf3fe4a04004f27faca6e81c50 Mon Sep 17 00:00:00 2001 From: caoqianming Date: Wed, 19 Jun 2024 15:54:45 +0800 Subject: [PATCH] fix: kingclient set token bug --- apps/third/king/k.py | 1 - 1 file changed, 1 deletion(-) diff --git a/apps/third/king/k.py b/apps/third/king/k.py index 393c2eb6..837b8755 100644 --- a/apps/third/king/k.py +++ b/apps/third/king/k.py @@ -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: