From 3d88827a95da5a863f062232ad34b3c529a2fb50 Mon Sep 17 00:00:00 2001 From: a490077 <32692385+a490077@users.noreply.github.com> Date: Tue, 28 Oct 2025 10:15:46 +0800 Subject: [PATCH] fix: qq_official_webhook is_sandbox field error (#3167) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * QQ官方机器人增加沙箱模式选项,让本地部署能跳过IP白名单验证 * chore: ruff format * 修复沙盒配置为字符串判断 * 由于配置类型为字符串,修复为字符串判断 * chore: ruff format * fix: update is_sandbox configuration to use boolean type --------- Co-authored-by: 郭鹏 Co-authored-by: Soulter <905617992@qq.com> Co-authored-by: Dt8333 --- astrbot/core/config/default.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/astrbot/core/config/default.py b/astrbot/core/config/default.py index 84477e993..7710ebb40 100644 --- a/astrbot/core/config/default.py +++ b/astrbot/core/config/default.py @@ -324,6 +324,10 @@ CONFIG_METADATA_2 = { # "type": "string", # "options": ["fullscreen", "embedded"], # }, + "is_sandbox": { + "description": "沙箱模式", + "type": "bool", + }, "satori_api_base_url": { "description": "Satori API 终结点", "type": "string",