更新对话到工单的默认文件路径,修正日期范围为“2025年1月到6月”,并在DifyExporter类中新增“当前软件”字段

This commit is contained in:
2025-07-15 13:50:58 +08:00
parent 35acf6de71
commit 5e164882a1
2 changed files with 5 additions and 2 deletions
+4 -1
View File
@@ -184,6 +184,7 @@ class DifyExporter:
msg_id = message["id"]
msg_inputs = message["inputs"]
user_name = msg_inputs.get("user_name", "")
current_softname = msg_inputs.get("current_softname", "")
msg_query = message["query"]
msg_answer = message["answer"]
msg_answer = msg_answer.split("----------------------------------------")[0]
@@ -212,6 +213,7 @@ class DifyExporter:
return {
"msg_id": msg_id,
"提问": msg_query,
"当前软件": current_softname,
"回答": msg_answer,
"提问人": user_name,
"提问时间": created_at,
@@ -271,7 +273,7 @@ class DifyExporter:
# 设置列的顺序
columns_order = [
"msg_id", "提问", "回答", "提问人", "提问时间",
"msg_id","当前软件", "提问", "回答", "提问人", "提问时间",
"评价", "问题分类", "检索到的词条", "备注"
]
@@ -302,6 +304,7 @@ class DifyExporter:
# 设置列宽
column_widths = {
"msg_id": 15,
"当前软件": 15,
"提问": 40,
"回答": 60,
"提问人": 15,