fix token
Showing
2 changed files
with
2 additions
and
2 deletions
| ... | @@ -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: | ... | ... |
-
Please register or sign in to post a comment