Commit 2a23d677 by 岳巧源

add dev request

parent 61bdf3ac
Showing with 9 additions and 0 deletions
......@@ -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()
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment