From 70a36631533b08d87c315162be354e32d170e63a Mon Sep 17 00:00:00 2001 From: CHERWING <160421895+CHERWING@users.noreply.github.com> Date: Thu, 23 May 2024 02:28:15 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=8A=E5=88=A9=E7=B3=BB=E5=88=97=E5=B0=8F?= =?UTF-8?q?=E7=A8=8B=E5=BA=8F=20=EF=BC=88=E5=8C=85=E5=90=AB=EF=BC=9A?= =?UTF-8?q?=E7=94=84=E7=A8=80=E5=86=B0=E6=B7=87=E6=B7=8B=EF=BC=8C=E9=87=91?= =?UTF-8?q?=E5=85=B8SATINE=E3=80=81=E6=B4=BB=E5=8A=9B=E4=BC=8A=E5=88=A9?= =?UTF-8?q?=EF=BC=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- YLXL.py | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/YLXL.py b/YLXL.py index 9dcb232..cc950fd 100644 --- a/YLXL.py +++ b/YLXL.py @@ -122,33 +122,33 @@ class RUN: print(response) return False - def get_Point(self): + def get_Point(self,END=False): act_name = '获取积分信息' - Log(f'\n====== {act_name} ======') + if not END:Log(f'\n====== {act_name} ======') url = f"{self.baseUrl}point" response = self.make_request(url,method='get') if response.get('status', False): point = response.get('data') print(f'{act_name}成功!✅') - Log(f'当前积分:【{point}】') + if END: + Log(f'当前积分:【{point}】') + else: + Log(f'执行后积分:【{point}】') return True else: print(response) return False - def daily_sign(self,END=False): + def daily_sign(self): act_name = '签到' - if not END:Log(f'\n====== {act_name} ======') + Log(f'\n====== {act_name} ======') url = f"{self.baseUrl}daily/sign" response = self.make_request(url) if response.get('status', False): data = response.get('data',{}) point = data.get('dailySign', {}).get('bonusPoint', '') print(f'{act_name}成功!✅') - if END: - Log(f'当前积分:【{point}】') - else: - Log(f'执行后积分:【{point}】') + Log(f'获得积分:【{point}】') return True else: print(response)