diff --git a/tsthb.py b/tsthb.py index f8a8bef..1d2e793 100644 --- a/tsthb.py +++ b/tsthb.py @@ -73,7 +73,9 @@ def qdsj(ck): for i in dl['result']: if i['bannerName'] == '每日签到': qd = i['jumpPara'] - activityId = json.loads(qd)['activityId'] + activityId = re.findall('activityId%2522%253A(.*?)%257D',qd)[0] + print(f"获取到本月签到代码:{activityId}") + #activityId = json.loads(qd)['activityId'] return activityId @@ -85,7 +87,7 @@ def yx(ck): except Exception as e: activityId = '' if activityId == '': - activityId = 56 + activityId = 57 headers = {'user-token':ck,'version':version,'channel':'1'} dl = requests.get(url='https://sss-web.tastientech.com/api/intelligence/member/getMemberDetail',headers=headers).json() if dl['code'] == 200: @@ -127,4 +129,4 @@ if __name__ == '__main__': send_notification_message(title='塔斯汀汉堡') # 发送通知 except Exception as e: print('小错误') - + \ No newline at end of file