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
6ba8d65d
authored
2021-11-03 15:26:24 +0800
by
周伟奇
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
fix token
1 parent
cc6c63c8
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
src/apps/doc/ocr/cms.py
src/apps/doc/ocr/ecm.py
src/apps/doc/ocr/cms.py
View file @
6ba8d65
...
...
@@ -34,7 +34,7 @@ class CMS:
rh
.
set_cms_token
(
self
.
token
,
expires
)
def
get_token
(
self
):
if
self
.
token
is
None
:
#
if self.token is None:
self
.
token
=
rh
.
get_cms_token
()
if
self
.
token
is
None
:
self
.
update_token
()
...
...
src/apps/doc/ocr/ecm.py
View file @
6ba8d65
...
...
@@ -59,7 +59,7 @@ class ECM:
rh
.
set_ecm_token
(
self
.
oauth_token
,
expires
)
def
get_oauth_token
(
self
):
if
self
.
oauth_token
is
None
:
#
if self.oauth_token is None:
# redis获取token
self
.
oauth_token
=
rh
.
get_ecm_token
()
if
self
.
oauth_token
is
None
:
...
...
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