d63cc7f9 by 冯轩

MOD:uat-token默认重新获取

1 parent 280eb612
...@@ -41,7 +41,8 @@ class CMS: ...@@ -41,7 +41,8 @@ class CMS:
41 41
42 def get_token(self): 42 def get_token(self):
43 # if self.token is None: 43 # if self.token is None:
44 self.token = rh.get_cms_token() 44 self.token = None
45 #self.token = rh.get_cms_token()
45 if self.token is None: 46 if self.token is None:
46 self.update_token() 47 self.update_token()
47 return self.token 48 return self.token
......
...@@ -74,7 +74,8 @@ class ECM: ...@@ -74,7 +74,8 @@ class ECM:
74 def get_oauth_token(self): 74 def get_oauth_token(self):
75 # if self.oauth_token is None: 75 # if self.oauth_token is None:
76 # redis获取token 76 # redis获取token
77 self.oauth_token = rh.get_ecm_token() 77 self.oauth_token = None
78 #self.oauth_token = rh.get_ecm_token()
78 if self.oauth_token is None: 79 if self.oauth_token is None:
79 self.update_oauth_token() 80 self.update_oauth_token()
80 return self.oauth_token 81 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!