1
0
mirror of https://github.com/6dylan6/jdpro.git synced 2025-07-13 16:13:07 +08:00
This commit is contained in:
2024
2024-12-12 13:28:12 +08:00
parent 46aa8367b1
commit f31f74457a
2 changed files with 2 additions and 2 deletions

View File

@ -253,7 +253,7 @@ def getcookie_wskey(key):
#sign = get_sign_diy(pin)
if not sign:
continue
url = f"https://api.m.jd.com/client.action?functionId=genToken&{sign}"
url = f"http://api.m.jd.com/client.action?functionId=genToken&{sign}"
headers = {
"cookie": key,
'user-agent': UserAgent,

View File

@ -375,7 +375,7 @@ def getToken(wskey): # 方法 获取 Wskey转换使用的 Token 由 JD_API 返
'accept-encoding': 'br,gzip,deflate',
'user-agent': genJDUA()
} # 设置 HTTP头
url = 'https://api.m.jd.com/client.action' # 设置 URL地址
url = 'http://api.m.jd.com/client.action' # 设置 URL地址
data = 'body=%7B%22to%22%3A%22https%253a%252f%252fplogin.m.jd.com%252fjd-mlogin%252fstatic%252fhtml%252fappjmp_blank.html%22%7D&' # 设置 POST 载荷
try:
res = requests.post(url=url, params=params, headers=headers, data=data, verify=False,