From 2ebc683cbf7f64edf4f3384cbd312fb14983b515 Mon Sep 17 00:00:00 2001 From: CHERWING <160421895+CHERWING@users.noreply.github.com> Date: Thu, 23 May 2024 02:39:47 +0800 Subject: [PATCH] Update YLXL.py --- YLXL.py | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/YLXL.py b/YLXL.py index 4fc0bd8..2e6bac0 100644 --- a/YLXL.py +++ b/YLXL.py @@ -131,9 +131,9 @@ class RUN: point = response.get('data') print(f'{act_name}成功!✅') if END: - Log(f'执行后积分:【{data}】') + Log(f'执行后积分:【{point}】') else: - Log(f'当前积分:【{data}】') + Log(f'当前积分:【{point}】') return True else: print(response) @@ -146,9 +146,11 @@ class RUN: response = self.make_request(url) if response.get('status', False): data = response.get('data',{}) - point = data.get('dailySign', {}).get('bonusPoint', '') - print(f'{act_name}成功!✅') - Log(f'获得积分:【{point}】') + dailySign = data.get('dailySign', None) + if dailySign != None: + point = dailySign.get('bonusPoint', '') + print(f'{act_name}成功!✅') + Log(f'获得积分:【{point}】') return True else: print(response) @@ -190,6 +192,7 @@ class RUN: random_delay() self.get_Point(True) + self.sendMsg() return True else: