增加推送uid重置

This commit is contained in:
zhangdongxu 2023-12-23 16:18:41 +08:00
parent 3b969e974e
commit fedfbf9a21

View File

@ -86,9 +86,8 @@ def get_all_mido():
# print(response.status_code)
print(json.loads(response.text)['msg'])
# 成功后推送
# if json.loads(response.text)['msg'] == '领取成功':
if json.loads(response.text)['msg'] != 'null':
# 成功后推送,如果有推送uid则推送没有则直接跳过
if wxpusher_uid != '' and json.loads(response.text)['msg'] == '领取成功':
# 获取咪豆数量
url = "https://mk-gateway-pro.singworld.cn/mk-outside/api/score/getCurScore?uid=1093049864"
response = requests.get(url, headers=headers, json=data, verify=False)
@ -156,6 +155,8 @@ if __name__ == '__main__':
# 判断是否有推送uid
if len(cookie.split('@')) == 3:
wxpusher_uid = cookie.split('@')[2]
else:
wxpusher_uid = ''
headers = {
"Host": "mk-gateway-pro.singworld.cn",
"token": token,