Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
岳巧源
/
jd_data_process
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
2a23d677
authored
Nov 04, 2024
by
岳巧源
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
add dev request
parent
61bdf3ac
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
0 deletions
common.py
common.py
View file @
2a23d677
...
...
@@ -45,3 +45,12 @@ def request_to_jd_vc(method_name, token, app_key, app_secret, param: dict) -> di
params
=
get_sign_data
(
method_name
,
token
,
app_key
,
app_secret
,
param
)
ans
=
requests
.
get
(
url
=
jd_url
,
params
=
params
)
return
ans
.
json
()
def
request_to_jd_vc_dev
(
method_name
,
token
,
app_key
,
app_secret
,
param
:
dict
)
->
dict
:
"""
京东预发环境
"""
jd_dev_url
=
"https://api-dev.jd.com/routerjson"
params
=
get_sign_data
(
method_name
,
token
,
app_key
,
app_secret
,
param
)
ans
=
requests
.
get
(
url
=
jd_dev_url
,
params
=
params
)
return
ans
.
json
()
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