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
e6f6e20a
authored
Sep 18, 2023
by
陈森彬
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
update redis config
parent
d1d1bd12
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
lib/apidigikey.py
lib/apidigikey.py
View file @
e6f6e20a
...
...
@@ -26,9 +26,9 @@ redirect_uri = 'https://bigdata.ichunt.com/digikey_auth.php'
# client_secret = 'CxRLozO8hZ2GvCJ1'
# 对接digikey的api的token不放在master而放在这台机器上
# apidigikey
_ip = "172.18.137.38"
master_redis
_ip
=
"172.18.137.38"
apidigikey_ip
=
"127.0.0.1"
master_redis_ip
=
"127.0.0.1"
#
master_redis_ip = "127.0.0.1"
psd
=
'icDb29mLy2s'
...
...
@@ -116,5 +116,6 @@ class DGTokenCrawler(token_lib.BaseTokenCrawler):
access_token
,
refresh_token
=
self
.
collect_token
()
self
.
_redis
.
set
(
self
.
token_key
,
access_token
)
#
self._redis2.set(self.token_key, access_token)
self
.
_redis2
.
set
(
self
.
token_key
,
access_token
)
self
.
_redis
.
set
(
self
.
refresh_token_key
,
refresh_token
)
self
.
_redis2
.
set
(
self
.
refresh_token_key
,
refresh_token
)
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