From af15840755aa15e7317d5934c92c0ddc3c9e9a31 Mon Sep 17 00:00:00 2001 From: JNG <365252428@qq.com> Date: Wed, 11 Mar 2026 20:22:16 +0800 Subject: [PATCH] Update questionnaireSurvey.go --- pkg/service/bundle/questionnaireSurvey.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pkg/service/bundle/questionnaireSurvey.go b/pkg/service/bundle/questionnaireSurvey.go index f4587566..22165158 100644 --- a/pkg/service/bundle/questionnaireSurvey.go +++ b/pkg/service/bundle/questionnaireSurvey.go @@ -11,6 +11,7 @@ import ( "strconv" "time" + m "fonchain-fiee/pkg/model" "github.com/gin-gonic/gin" "github.com/google/uuid" ) @@ -74,7 +75,7 @@ func QuestionnaireSurveyCreate(c *gin.Context) { return } templateDir := "./data/满意度调成报告模板.pdf" - outputPath := "/data/" + "questionnaire_" + uuid.NewString() + ".pdf" + outputPath := m.MediaPath + "questionnaire_" + uuid.NewString() + ".pdf" err = utils.QuestionnaireSurveyPDF(templateDir, outputPath, &model.QuestionnairePDFData{ //CustomerNum: surveyInfo.BundleInfo., CustomerName: surveyInfo.UserName,