Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
lichenggang
/
tas_token_server
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
38384314
authored
Jul 16, 2021
by
陈森彬
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
更改重试次数
parent
3fb45c65
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
1 deletions
lib/apidigikey.py
lib/apidigikey.py
View file @
38384314
...
...
@@ -79,7 +79,7 @@ class DGTokenCrawler(token_lib.BaseTokenCrawler):
token_json
=
resp
.
json
()
return
token_json
[
'access_token'
],
token_json
[
'refresh_token'
]
@retry
(
tries
=
3
)
@retry
(
tries
=
5
)
def
get_token_by_refresh_token
(
self
):
refresh_token
=
self
.
_redis
.
get
(
self
.
refresh_token_key
)
.
decode
()
p_data
=
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
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 comment