🚨重新修复sr签到时未判断sr_uid的问题

This commit is contained in:
qwerdvd 2023-05-06 19:19:54 +08:00
parent c61e77f3bb
commit 7eb71c20e8

View File

@ -149,7 +149,7 @@ async def daily_sign():
sqla = get_sqla(bot_id) sqla = get_sqla(bot_id)
user_list = await sqla.get_all_user() user_list = await sqla.get_all_user()
for user in user_list: for user in user_list:
if user.sign_switch != 'off': if user.sign_switch != 'off' and user.sr_uid is not None:
tasks.append( tasks.append(
single_daily_sign( single_daily_sign(
user.bot_id, user.bot_id,