mirror of
https://github.com/baiqwerdvd/StarRailUID.git
synced 2025-05-06 11:43:44 +08:00
🚨修复sr每日签到时未判断sr_uid的问题
This commit is contained in:
parent
58880ea9c6
commit
5ee926c16b
@ -22,6 +22,7 @@ async def get_notice_list() -> Dict[str, Dict[str, Dict]]:
|
||||
sqla = get_sqla(bot_id)
|
||||
user_list = await sqla.get_all_push_user_list()
|
||||
for user in user_list:
|
||||
if user.sr_uid is not None:
|
||||
raw_data = await mys_api.get_daily_data(user.sr_uid)
|
||||
if isinstance(raw_data, int):
|
||||
logger.error(f'[sr推送提醒]获取{user.sr_uid}的数据失败!')
|
||||
|
Loading…
x
Reference in New Issue
Block a user