From 2d5ee7f08d5318cdebd73f4e822e08c766ea04e2 Mon Sep 17 00:00:00 2001 From: ly1213 Date: Mon, 29 Jun 2026 17:44:22 +0800 Subject: [PATCH] feat: update auto reply and packaging --- build/windows/installer/project.nsi | 3 + config/materials/materials.json | 6 +- config/types.go | 2 + frontend/src/components/AutoReply.vue | 121 ++++++++--- frontend/src/main.js | 1 + frontend/wailsjs/runtime/runtime.d.ts | 83 +------- frontend/wailsjs/runtime/runtime.js | 60 ------ helper/auto_reply.go | 10 +- helper/auto_reply_http.go | 9 + helper/auto_reply_knowledge.go | 26 ++- helper/auto_reply_knowledge_test.go | 55 ++++- helper/auto_reply_material_caption.go | 2 +- helper/auto_reply_materials.go | 231 +++++++++++++++++--- helper/auto_reply_status.go | 15 ++ helper/auto_reply_test.go | 295 ++++++++++++++++++++++++-- requestdata/sendVWorkFileMessage.json | 4 +- scripts/package-windows.ps1 | 9 +- yuanzhipeng提交内容梳理.md | 273 ++++++++++++++++++++++++ 本地改动说明_20260629.md | 169 +++++++++++++++ 19 files changed, 1147 insertions(+), 227 deletions(-) create mode 100644 yuanzhipeng提交内容梳理.md create mode 100644 本地改动说明_20260629.md diff --git a/build/windows/installer/project.nsi b/build/windows/installer/project.nsi index 26509ff..610262f 100644 --- a/build/windows/installer/project.nsi +++ b/build/windows/installer/project.nsi @@ -120,6 +120,9 @@ Section File "runtime\Helper_*.dll" File "runtime\Loader_*.dll" + SetOutPath "$INSTDIR\tools" + File /r "runtime\tools\*.*" + SetOutPath "$INSTDIR\requestdata" File /r "runtime\requestdata\*.*" diff --git a/config/materials/materials.json b/config/materials/materials.json index ed9d1fe..5daf081 100644 --- a/config/materials/materials.json +++ b/config/materials/materials.json @@ -17,7 +17,7 @@ ], "materialType": "image", "path": "猫猫图片.jpg", - "caption": "我把图片发你。", + "caption": "我把图片发给您。", "priority": 3, "enabled": true }, @@ -39,7 +39,7 @@ ], "materialType": "file", "path": "售后问题库_2026-05-30_1629.xlsx", - "caption": "我把售后问题表发你。", + "caption": "我把售后问题表发给您。", "priority": 2, "enabled": true }, @@ -61,7 +61,7 @@ ], "materialType": "file", "path": "方案模板.docx", - "caption": "我把方案模板发你。", + "caption": "我把方案模板发给您。", "priority": 2, "enabled": true } diff --git a/config/types.go b/config/types.go index ee3b1a7..092dd1e 100644 --- a/config/types.go +++ b/config/types.go @@ -129,6 +129,7 @@ type HandoffConfig struct { type IdentityConfig struct { UnknownPolicy string `json:"unknownPolicy"` UnknownHandoffPolicy string `json:"unknownHandoffPolicy"` + ReplyExternalOnly bool `json:"replyExternalOnly"` RefreshOnStart bool `json:"refreshOnStart"` RefreshIntervalMinutes int `json:"refreshIntervalMinutes"` PageSize int `json:"pageSize"` @@ -272,6 +273,7 @@ func NewDefaultAutoReplyConfig() AutoReplyConfig { Identity: IdentityConfig{ UnknownPolicy: "customer", UnknownHandoffPolicy: "hold", + ReplyExternalOnly: false, RefreshOnStart: true, RefreshIntervalMinutes: 30, PageSize: 200, diff --git a/frontend/src/components/AutoReply.vue b/frontend/src/components/AutoReply.vue index ad3e29f..a7dd887 100644 --- a/frontend/src/components/AutoReply.vue +++ b/frontend/src/components/AutoReply.vue @@ -98,7 +98,7 @@
-
{{ alert }}
+
{{ alert.text }}
+