From effe82ce650a07a4dc93c3c01020472bb6af5bde Mon Sep 17 00:00:00 2001 From: Mrx <18278715334@163.com> Date: Fri, 22 May 2026 11:28:44 +0800 Subject: [PATCH] f --- app/main/api/internal/service/toolboxService.go | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/app/main/api/internal/service/toolboxService.go b/app/main/api/internal/service/toolboxService.go index 37d8091..a104138 100644 --- a/app/main/api/internal/service/toolboxService.go +++ b/app/main/api/internal/service/toolboxService.go @@ -3169,7 +3169,16 @@ func (s *ToolboxService) processJieQi( } } - // 6. 公历 / 农历字段可读化(可选) + // 6. 字段映射与公历/农历字段可读化 + // 将 name 映射为 word(前端期望) + if name, ok := clean["name"].(string); ok { + clean["word"] = name + } + // 将 jieshao 映射为 content(前端期望) + if desc, ok := clean["jieshao"].(string); ok { + clean["content"] = desc + } + // 公历 / 农历字段可读化 if date, ok := clean["date"].(map[string]interface{}); ok { clean["greg_date"] = date["gregdate"] clean["lunar_date"] = date["lunardate"]