From 114a8a423ca4bafde3e6695a8fa93ed5dfab17ba Mon Sep 17 00:00:00 2001 From: xiaowang <2161656029@qq.com> Date: Wed, 4 Nov 2026 23:26:14 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E8=B7=A8=E7=8E=AF=E5=A2=83=E8=BD=AC?= =?UTF-8?q?=E5=8F=91=E9=85=8D=E7=BD=AE=E9=A1=B9=E6=8C=89=20CONTENT=5FMODER?= =?UTF-8?q?ATION=5FFORWARD=20=E5=91=BD=E5=90=8D=E8=90=BD=E5=BA=93?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../service/impl/SecureIntegrationConfigServiceImpl.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/JC-Salon-Core/src/main/java/com/xiaowang/jayucloud/salon/core/modules/system/service/impl/SecureIntegrationConfigServiceImpl.java b/JC-Salon-Core/src/main/java/com/xiaowang/jayucloud/salon/core/modules/system/service/impl/SecureIntegrationConfigServiceImpl.java index 8d8af40f..bb17b8bd 100644 --- a/JC-Salon-Core/src/main/java/com/xiaowang/jayucloud/salon/core/modules/system/service/impl/SecureIntegrationConfigServiceImpl.java +++ b/JC-Salon-Core/src/main/java/com/xiaowang/jayucloud/salon/core/modules/system/service/impl/SecureIntegrationConfigServiceImpl.java @@ -38,6 +38,7 @@ import java.util.Map; public class SecureIntegrationConfigServiceImpl implements SecureIntegrationConfigService { private static final String MAP = "MAP"; private static final String MODERATION = "CONTENT_MODERATION"; + private static final String MODERATION_FORWARD = "CONTENT_MODERATION_FORWARD"; private static final String SYSTEM = "SYSTEM"; private static final String LEGACY_MAP_MIGRATED = "LEGACY_MAP_MIGRATED"; private static final String WECHAT_CALLBACK_PATH = "/api/integration/wechat/content-moderation/callback"; @@ -218,7 +219,7 @@ public class SecureIntegrationConfigServiceImpl implements SecureIntegrationConf payload.put("targets", targets); payload.put("secret", secret); try { - writeValue(MODERATION, "FORWARD_JSON", objectMapper.writeValueAsString(payload), true, currentUser.getId()); + writeValue(MODERATION_FORWARD, "CONFIG", objectMapper.writeValueAsString(payload), true, currentUser.getId()); } catch (JsonProcessingException exception) { throw new IllegalStateException("无法保存跨环境转发配置", exception); } @@ -227,7 +228,7 @@ public class SecureIntegrationConfigServiceImpl implements SecureIntegrationConf @Override public ModerationForwardConfig getModerationForwardConfig() { if (!encryptionService.isConfigured()) return ModerationForwardConfig.disabled(); - String json = readValue(MODERATION, "FORWARD_JSON", ""); + String json = readValue(MODERATION_FORWARD, "CONFIG", ""); if (!StringUtils.hasText(json)) return ModerationForwardConfig.disabled(); try { JsonNode node = objectMapper.readTree(json);