fix(acceptance): repair official account replies and processor navigation

This commit is contained in:
Hyu
2026-10-09 20:13:51 +08:00
parent fea35e8b3f
commit 396b09ecce
9 changed files with 256 additions and 101 deletions
+4 -3
View File
@@ -704,7 +704,8 @@ class BotService:
bot = await self.get_bot(context, bot_data['uuid'], include_secret=True)
try:
await self.ap.platform_mgr.load_bot(context, bot)
if bot.get('enable'):
await self.ap.platform_mgr.load_bot(context, bot)
except Exception as exc:
raise BotApplyError(bot_error_message(exc, bot), bot['uuid']) from exc
@@ -740,8 +741,8 @@ class BotService:
bot = await self.get_bot(context, bot_uuid, include_secret=True)
try:
await self.ap.platform_mgr.remove_bot(context, bot_uuid)
runtime_bot = await self.ap.platform_mgr.load_bot(context, bot)
if runtime_bot.enable:
if bot.get('enable'):
runtime_bot = await self.ap.platform_mgr.load_bot(context, bot)
await runtime_bot.run()
except Exception as exc:
raise BotApplyError(bot_error_message(exc, bot), bot['uuid']) from exc