From 621d3d9c3280a904c782b32089e9f7df2600a125 Mon Sep 17 00:00:00 2001
From: meatjam <851404658@qq.com>
Date: Thu, 13 Oct 2022 10:14:37 +0800
Subject: [PATCH] =?UTF-8?q?feat(coin=5Fhandle):=20=E7=B1=B3=E6=B8=B8?=
=?UTF-8?q?=E5=B8=81=E8=87=AA=E5=8A=A8=E8=8E=B7=E5=8F=96=E6=97=B6=EF=BC=8C?=
=?UTF-8?q?=E7=AD=BE=E5=88=B0=E5=9B=A0=E9=AA=8C=E8=AF=81=E7=A0=81=E5=A4=B1?=
=?UTF-8?q?=E8=B4=A5=EF=BC=8C=E5=88=99=E8=B7=B3=E8=BF=87=E7=AD=BE=E5=88=B0?=
=?UTF-8?q?=E7=BB=A7=E7=BB=AD=E6=89=A7=E8=A1=8C=E5=90=8E=E7=BB=AD=E4=BB=BB?=
=?UTF-8?q?=E5=8A=A1=E3=80=82?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
LittlePaimon/plugins/Paimon_Autobbs/coin_handle.py | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/LittlePaimon/plugins/Paimon_Autobbs/coin_handle.py b/LittlePaimon/plugins/Paimon_Autobbs/coin_handle.py
index fb16f0b..6b578d5 100644
--- a/LittlePaimon/plugins/Paimon_Autobbs/coin_handle.py
+++ b/LittlePaimon/plugins/Paimon_Autobbs/coin_handle.py
@@ -202,11 +202,12 @@ class MihoyoBBSCoin:
req = await aiorequests.post(url=bbs_Signurl, json={'gids': i['id']}, headers=header)
data = req.json()
if data['retcode'] != 0:
- self.is_valid = False
+ if data['retcode'] not in [1034]:
+ self.is_valid = False
self.state = 'Cookie已失效' if data['retcode'] in [-100,
10001] else f"出错了:{data['retcode']} {data['message']}"
logger.info('米游币自动获取', f'➤➤{self.state}')
- return self.state
+ return f'讨论区签到:{self.state}'
await asyncio.sleep(random.randint(5, 10))
logger.info('米游币自动获取', '➤➤讨论区签到完成')
return '讨论区签到:完成!'