From da51ff1a5feea9c22451968e4b86bc8f32011925 Mon Sep 17 00:00:00 2001 From: jxxghp Date: Tue, 18 Aug 2026 22:40:46 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=20SiteUpdated=20?= =?UTF-8?q?=E4=BA=8B=E4=BB=B6=E6=B8=85=E7=90=86=E7=AB=99=E7=82=B9=E6=95=B0?= =?UTF-8?q?=E6=8D=AE=E6=97=B6=20SystemConfigService=20=E6=97=A0=20all()=20?= =?UTF-8?q?=E6=96=B9=E6=B3=95=E6=8A=A5=E9=94=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/chain/site.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/chain/site.py b/app/chain/site.py index 4616477b4..b92f7c4e4 100644 --- a/app/chain/site.py +++ b/app/chain/site.py @@ -641,8 +641,9 @@ class SiteChain(InteractionChainMixin, ChainBase): # 获取主域名中间那段 domain_host = url_tools.host_label(domain) # 查询以"site.domain_host"开头的配置项,并清除 + # SystemConfigService 未提供 all(),无参 get() 经仓库返回全部配置字典 systemconfig = get_configured_system_config() - site_keys = systemconfig.all().keys() + site_keys = systemconfig.get().keys() for key in site_keys: if key.startswith(f"site.{domain_host}"): logger.info(f"清理站点配置:{key}")