Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
周伟奇
/
bmw-ocr
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Graphs
Network
Create a new issue
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
d63cc7f9
authored
2023-08-04 15:35:46 +0800
by
冯轩
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
MOD:uat-token默认重新获取
1 parent
280eb612
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
2 deletions
src/apps/doc/ocr/cms.py
src/apps/doc/ocr/ecm.py
src/apps/doc/ocr/cms.py
View file @
d63cc7f
...
...
@@ -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
...
...
src/apps/doc/ocr/ecm.py
View file @
d63cc7f
...
...
@@ -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
...
...
Write
Preview
Styling with
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment