From d3713b9b26b941d0f0290b3f03b3431ac6471cdc Mon Sep 17 00:00:00 2001 From: zzh <1368735060@qq.com> Date: Sat, 21 Nov 2026 15:52:01 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E5=93=81=E7=89=8C=E6=96=87=E6=A1=88?= =?UTF-8?q?=E6=94=AF=E6=8C=81=20ICP=20=E5=A4=87=E6=A1=88=E5=8F=B7=E9=85=8D?= =?UTF-8?q?=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 品牌 copy JSON 增加 Icp 字段,读写归一化后供官网顾问栏与联系文案使用。 Co-authored-by: Cursor --- src/Oms.Application/Dtos/System/BrandCopyDtos.cs | 6 ++++++ .../Services/System/SystemOtherConfigService.cs | 6 ++++-- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/src/Oms.Application/Dtos/System/BrandCopyDtos.cs b/src/Oms.Application/Dtos/System/BrandCopyDtos.cs index d8d1bfc..2cf51a2 100644 --- a/src/Oms.Application/Dtos/System/BrandCopyDtos.cs +++ b/src/Oms.Application/Dtos/System/BrandCopyDtos.cs @@ -22,6 +22,9 @@ public class BrandCopyOutput /// 官网 AI 顾问欢迎短标题(英文)。 public string AiWelcomeTitleShortEn { get; set; } = "BCD · Logistics advisor"; + + /// 工信部 ICP 备案号(官网页脚 / 顾问栏展示)。 + public string Icp { get; set; } = "粤ICP备2025463970号-2"; } /// @@ -46,4 +49,7 @@ public class BrandCopySaveInput /// AI 欢迎短标题(英文)。 public string AiWelcomeTitleShortEn { get; set; } = string.Empty; + + /// 工信部 ICP 备案号。 + public string Icp { get; set; } = string.Empty; } diff --git a/src/Oms.Application/Services/System/SystemOtherConfigService.cs b/src/Oms.Application/Services/System/SystemOtherConfigService.cs index 55ab664..23efaec 100644 --- a/src/Oms.Application/Services/System/SystemOtherConfigService.cs +++ b/src/Oms.Application/Services/System/SystemOtherConfigService.cs @@ -438,7 +438,8 @@ public class SystemOtherConfigService : ApplicationService AiWelcomeTitleZh = RequireBrandText(input.AiWelcomeTitleZh, "AI 欢迎标题(中文)"), AiWelcomeTitleShortZh = RequireBrandText(input.AiWelcomeTitleShortZh, "AI 欢迎短标题(中文)"), AiWelcomeTitleEn = RequireBrandText(input.AiWelcomeTitleEn, "AI 欢迎标题(英文)"), - AiWelcomeTitleShortEn = RequireBrandText(input.AiWelcomeTitleShortEn, "AI 欢迎短标题(英文)") + AiWelcomeTitleShortEn = RequireBrandText(input.AiWelcomeTitleShortEn, "AI 欢迎短标题(英文)"), + Icp = RequireBrandText(input.Icp, "ICP 备案号") }; } @@ -499,7 +500,8 @@ public class SystemOtherConfigService : ApplicationService : parsed.AiWelcomeTitleEn.Trim(), AiWelcomeTitleShortEn = string.IsNullOrWhiteSpace(parsed.AiWelcomeTitleShortEn) ? defaults.AiWelcomeTitleShortEn - : parsed.AiWelcomeTitleShortEn.Trim() + : parsed.AiWelcomeTitleShortEn.Trim(), + Icp = string.IsNullOrWhiteSpace(parsed.Icp) ? defaults.Icp : parsed.Icp.Trim() }; } catch