bugfix:修复命令前缀判断问题、修复超级用户无法豁免问题 (#2141)

* bugfix:修复命令前缀判断问题、修复超级用户无法豁免问题

* bugfix:修复格式问题
This commit is contained in:
Copaan
2026-06-16 17:14:03 +08:00
committed by GitHub
parent 8afc8f8673
commit a2c0cfdf5d
18 changed files with 224 additions and 51 deletions
+2
View File
@@ -278,6 +278,7 @@ async def _execute_single_job_instance(
schedule_id=schedule.id,
plugin_name=plugin_name,
bot_id=bot.self_id,
platform_scope=PlatformUtils.get_platform_scope(bot),
group_id=group_id,
job_kwargs=schedule.job_kwargs if isinstance(schedule.job_kwargs, dict) else {},
)
@@ -381,6 +382,7 @@ async def _execute_job(
)
if bot is None:
return
context_override.platform_scope = PlatformUtils.get_platform_scope(bot)
logger.info(f"开始执行临时任务: {plugin_name}")
injected_params = {"context": context_override}
state: T_State = {ScheduleContext: context_override}