From d0f87bcc76b3d76f67442421e4a545a2ab6aced3 Mon Sep 17 00:00:00 2001 From: JNG <365252428@qq.com> Date: Wed, 11 Mar 2026 20:12:55 +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 500d0cd6..f4587566 100644 --- a/pkg/service/bundle/questionnaireSurvey.go +++ b/pkg/service/bundle/questionnaireSurvey.go @@ -12,6 +12,7 @@ import ( "time" "github.com/gin-gonic/gin" + "github.com/google/uuid" ) func IsSendSurvey(c *gin.Context) { @@ -73,7 +74,7 @@ func QuestionnaireSurveyCreate(c *gin.Context) { return } templateDir := "./data/满意度调成报告模板.pdf" - outputPath := "/data/questionnaire/" + req.UserTel + time.Now().Format("20060102150405") + ".pdf" + outputPath := "/data/" + "questionnaire_" + uuid.NewString() + ".pdf" err = utils.QuestionnaireSurveyPDF(templateDir, outputPath, &model.QuestionnairePDFData{ //CustomerNum: surveyInfo.BundleInfo., CustomerName: surveyInfo.UserName,