mirror of
https://github.com/KimigaiiWuyi/GenshinUID.git
synced 2025-05-07 04:03:45 +08:00
🐛 修复推送BUG (#583)
This commit is contained in:
parent
20f35f2d30
commit
520069ccf8
@ -52,12 +52,12 @@ async def all_check(
|
|||||||
for mode in NOTICE.keys():
|
for mode in NOTICE.keys():
|
||||||
# 检查条件
|
# 检查条件
|
||||||
if push_data[f'{mode}_is_push'] == 'on':
|
if push_data[f'{mode}_is_push'] == 'on':
|
||||||
if gsconfig.get_config('CrazyNotice').data:
|
if not gsconfig.get_config('CrazyNotice').data:
|
||||||
if not await check(mode, raw_data, push_data[f'{mode}_value']):
|
if not await check(mode, raw_data, push_data[f'{mode}_value']):
|
||||||
await GsPush.update_data_by_uid(
|
await GsPush.update_data_by_uid(
|
||||||
uid, bot_id, None, **{f'{mode}_is_push': 'off'}
|
uid, bot_id, None, **{f'{mode}_is_push': 'off'}
|
||||||
)
|
)
|
||||||
continue
|
continue
|
||||||
# 准备推送
|
# 准备推送
|
||||||
if await check(mode, raw_data, push_data[f'{mode}_value']):
|
if await check(mode, raw_data, push_data[f'{mode}_value']):
|
||||||
if push_data[f'{mode}_push'] == 'off':
|
if push_data[f'{mode}_push'] == 'off':
|
||||||
|
Loading…
x
Reference in New Issue
Block a user