6ba8d65d by 周伟奇

fix token

1 parent cc6c63c8
......@@ -34,7 +34,7 @@ class CMS:
rh.set_cms_token(self.token, expires)
def get_token(self):
if self.token is None:
# if self.token is None:
self.token = rh.get_cms_token()
if self.token is None:
self.update_token()
......
......@@ -59,7 +59,7 @@ class ECM:
rh.set_ecm_token(self.oauth_token, expires)
def get_oauth_token(self):
if self.oauth_token is None:
# if self.oauth_token is None:
# redis获取token
self.oauth_token = rh.get_ecm_token()
if self.oauth_token is None:
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!