6ba8d65d by 周伟奇

fix token

1 parent cc6c63c8
...@@ -34,7 +34,7 @@ class CMS: ...@@ -34,7 +34,7 @@ class CMS:
34 rh.set_cms_token(self.token, expires) 34 rh.set_cms_token(self.token, expires)
35 35
36 def get_token(self): 36 def get_token(self):
37 if self.token is None: 37 # if self.token is None:
38 self.token = rh.get_cms_token() 38 self.token = rh.get_cms_token()
39 if self.token is None: 39 if self.token is None:
40 self.update_token() 40 self.update_token()
......
...@@ -59,7 +59,7 @@ class ECM: ...@@ -59,7 +59,7 @@ class ECM:
59 rh.set_ecm_token(self.oauth_token, expires) 59 rh.set_ecm_token(self.oauth_token, expires)
60 60
61 def get_oauth_token(self): 61 def get_oauth_token(self):
62 if self.oauth_token is None: 62 # if self.oauth_token is None:
63 # redis获取token 63 # redis获取token
64 self.oauth_token = rh.get_ecm_token() 64 self.oauth_token = rh.get_ecm_token()
65 if self.oauth_token is None: 65 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!