From aaa27b8d4bc97c851966e9c2e82a9d788225259f Mon Sep 17 00:00:00 2001 From: linlin <1628708538@qq.com> Date: Mon, 17 Mar 2025 12:36:55 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=E8=8E=B7=E5=8F=96=E6=9C=AC?= =?UTF-8?q?=E6=9C=88=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- tsthb.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) 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