🐛 fix: 修复 aiocqhttp 下可能的设置管理员无效的问题

This commit is contained in:
Soulter
2025-03-11 15:52:30 +08:00
parent 5e2a3a5aea
commit 09c8c6e670
+1 -1
View File
@@ -36,7 +36,7 @@ class WakingCheckStage(Stage):
# 设置 sender 身份
event.message_str = event.message_str.strip()
for admin_id in self.ctx.astrbot_config["admins_id"]:
if event.get_sender_id() == admin_id:
if str(event.get_sender_id()) == admin_id:
event.role = "admin"
break