mirror of
https://github.com/6dylan6/jdpro.git
synced 2025-07-17 18:04:13 +08:00
1
This commit is contained in:
@@ -253,7 +253,7 @@ def getcookie_wskey(key):
|
|||||||
#sign = get_sign_diy(pin)
|
#sign = get_sign_diy(pin)
|
||||||
if not sign:
|
if not sign:
|
||||||
continue
|
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 = {
|
headers = {
|
||||||
"cookie": key,
|
"cookie": key,
|
||||||
'user-agent': UserAgent,
|
'user-agent': UserAgent,
|
||||||
|
@@ -375,7 +375,7 @@ def getToken(wskey): # 方法 获取 Wskey转换使用的 Token 由 JD_API 返
|
|||||||
'accept-encoding': 'br,gzip,deflate',
|
'accept-encoding': 'br,gzip,deflate',
|
||||||
'user-agent': genJDUA()
|
'user-agent': genJDUA()
|
||||||
} # 设置 HTTP头
|
} # 设置 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 载荷
|
data = 'body=%7B%22to%22%3A%22https%253a%252f%252fplogin.m.jd.com%252fjd-mlogin%252fstatic%252fhtml%252fappjmp_blank.html%22%7D&' # 设置 POST 载荷
|
||||||
try:
|
try:
|
||||||
res = requests.post(url=url, params=params, headers=headers, data=data, verify=False,
|
res = requests.post(url=url, params=params, headers=headers, data=data, verify=False,
|
||||||
|
Reference in New Issue
Block a user