|
@@ -391,7 +391,7 @@ class JdSeckill(object):
|
|
|
"""获取用户信息"""
|
|
"""获取用户信息"""
|
|
|
url = 'https://passport.jd.com/user/petName/getUserInfoForMiniJd.action'
|
|
url = 'https://passport.jd.com/user/petName/getUserInfoForMiniJd.action'
|
|
|
payload = {
|
|
payload = {
|
|
|
- 'callback': 'jQuery'.format(random.randint(1000000, 9999999)),
|
|
|
|
|
|
|
+ 'callback': 'jQuery{}'.format(random.randint(1000000, 9999999)),
|
|
|
'_': str(int(time.time() * 1000)),
|
|
'_': str(int(time.time() * 1000)),
|
|
|
}
|
|
}
|
|
|
headers = {
|
|
headers = {
|
|
@@ -617,4 +617,4 @@ class JdSeckill(object):
|
|
|
if global_config.getRaw('messenger', 'enable') == 'true':
|
|
if global_config.getRaw('messenger', 'enable') == 'true':
|
|
|
error_message = '抢购失败,返回信息:{}'.format(resp_json)
|
|
error_message = '抢购失败,返回信息:{}'.format(resp_json)
|
|
|
send_wechat(error_message)
|
|
send_wechat(error_message)
|
|
|
- return False
|
|
|
|
|
|
|
+ return False
|