From 41dcc039d9ae4fb7c899ad28620c46a669e97872 Mon Sep 17 00:00:00 2001
From: CMHopeSunshine <277073121@qq.com>
Date: Wed, 31 Aug 2022 23:08:11 +0800
Subject: [PATCH] =?UTF-8?q?:bug:=20=E4=BF=AE=E5=A4=8Dck=E8=BE=BE=E5=88=B03?=
=?UTF-8?q?0=E6=AC=A1=E4=B8=8A=E9=99=90=E6=97=B6=E6=8A=A5=E9=94=99?=
=?UTF-8?q?=E7=9A=84=E9=97=AE=E9=A2=98?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
LittlePaimon/utils/api.py | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/LittlePaimon/utils/api.py b/LittlePaimon/utils/api.py
index 12fe0d7..19da39d 100644
--- a/LittlePaimon/utils/api.py
+++ b/LittlePaimon/utils/api.py
@@ -168,15 +168,16 @@ async def check_retcode(data: dict, cookie_info, cookie_type: str, user_id: str,
cookie_info.status = 2
if cookie_type == 'private':
cookie_info.status = 2
+ await cookie_info.save()
logger.info('原神Cookie', f'用户{user_id}的私人cookie{uid}已达到每日30次查询上限')
elif cookie_type == 'public':
cookie_info.status = 2
+ await cookie_info.save()
logger.info('原神Cookie', f'{cookie_info.id}号公共cookie已达到每日30次查询上限')
else:
await PublicCookie.filter(cookie=cookie_info.cookie).update(status=2)
await cookie_info.delete()
logger.info('原神Cookie', f'UID{cookie_info.uid}使用的缓存cookie已达到每日30次查询上限')
- await cookie_info.save()
return False
else:
if cookie_type == 'public':