d63cc7f9 by 冯轩

MOD:uat-token默认重新获取

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