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
7c9969e6
authored
2022-05-13 11:00:15 +0800
by
周伟奇
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
fix bug
1 parent
4cfb40a9
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
src/common/mixins.py
src/common/mixins.py
View file @
7c9969e
...
...
@@ -122,7 +122,7 @@ class IWABaseView:
'redirect_uri'
:
redirect_uri
,
}
# get_params_str = '&'.join(['{0}={1}'.format(k, v) for k, v in get_params_dict.items()])
iwa_token_url
=
'{0}access_token'
.
format
(
iwa_url_base
)
iwa_token_url
=
'{0}
intranetb2x/
access_token'
.
format
(
iwa_url_base
)
res
=
requests
.
post
(
url
=
iwa_token_url
,
headers
=
headers
,
data
=
get_params_dict
)
return
res
.
json
()
.
get
(
'access_token'
,
''
)
...
...
@@ -132,7 +132,7 @@ class IWABaseView:
headers
=
{
'Authorization'
:
'Bearer {0}'
.
format
(
access_token
)
}
iwa_user_url
=
'{0}userinfo'
.
format
(
iwa_url_base
)
iwa_user_url
=
'{0}
intranetb2x/
userinfo'
.
format
(
iwa_url_base
)
res
=
requests
.
get
(
iwa_user_url
,
headers
=
headers
)
return
res
.
json
()
...
...
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