From b6e4a7e0c25ac5aee98c5401c16f935c983ad97a Mon Sep 17 00:00:00 2001 From: linlin <1628708538@qq.com> Date: Mon, 7 Apr 2025 16:51:17 +0800 Subject: [PATCH] =?UTF-8?q?=E6=AF=8F=E6=9C=88=E7=AD=BE=E5=88=B0=E4=BB=A3?= =?UTF-8?q?=E7=A0=81=E8=8E=B7=E5=8F=96=E6=96=B9=E5=BC=8F=E5=8F=88=E5=8F=98?= =?UTF-8?q?=E4=BA=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- tsthb.py | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/tsthb.py b/tsthb.py index 1d2e793..3fd1ca6 100644 --- a/tsthb.py +++ b/tsthb.py @@ -22,7 +22,7 @@ import json print('============📣初始化📣============') #版本 github_file_name = 'tsthb.py' -sjgx = '2025-02-17T21:30:11.000+08:00' +sjgx = '2025-04-17T21:30:11.000+08:00' version = '1.46.8' try: @@ -70,10 +70,13 @@ def qdsj(ck): data = {"shopId":"","birthday":"","gender": 0,"nickName":None,"phone":""} dl = requests.post(url='https://sss-web.tastientech.com/api/minic/shop/intelligence/banner/c/list',json=data,headers=headers).json() activityId = '' + # print(dl) for i in dl['result']: - if i['bannerName'] == '每日签到': + if '每日签到' in i['bannerName']: + # print(i) qd = i['jumpPara'] - activityId = re.findall('activityId%2522%253A(.*?)%257D',qd)[0] + activityId = json.loads(qd)['activityId'] + # activityId = re.findall('activityId%2522%253A(.*?)%257D',qd)[0] print(f"获取到本月签到代码:{activityId}") #activityId = json.loads(qd)['activityId'] return activityId