mirror of
https://github.com/KimigaiiWuyi/GenshinUID.git
synced 2025-05-09 05:25:53 +08:00
🐛 修复体力推送提醒概率性报错 (#638)
This commit is contained in:
parent
4dda2527e4
commit
4447ab841f
@ -27,10 +27,15 @@ async def get_notice_list() -> Dict[str, Dict[str, Dict]]:
|
||||
continue
|
||||
raw_data = await mys_api.get_daily_data(user.uid)
|
||||
if isinstance(raw_data, int):
|
||||
logger.error(f'[推送提醒]获取{user.uid}的数据失败!')
|
||||
logger.error(
|
||||
f'[推送提醒] 获取{user.uid}的数据失败!错误代码为: {raw_data}'
|
||||
)
|
||||
continue
|
||||
push_data = await GsPush.select_data_by_uid(user.uid)
|
||||
msg_dict = await all_check(
|
||||
if push_data is None:
|
||||
continue
|
||||
|
||||
msg_dict[bot_id] = await all_check(
|
||||
user.bot_id,
|
||||
raw_data,
|
||||
push_data.__dict__,
|
||||
|
Loading…
x
Reference in New Issue
Block a user