Merge branch 'jng-QuestionnairePDF-0311' into dev

This commit is contained in:
JNG 2026-03-11 19:48:51 +08:00
commit f3d8488da1

View File

@ -9,7 +9,6 @@ import (
"fonchain-fiee/pkg/service/bundle/model" "fonchain-fiee/pkg/service/bundle/model"
"fonchain-fiee/pkg/service/upload" "fonchain-fiee/pkg/service/upload"
"fonchain-fiee/pkg/utils" "fonchain-fiee/pkg/utils"
"os"
"time" "time"
"github.com/gin-gonic/gin" "github.com/gin-gonic/gin"
@ -109,8 +108,11 @@ func QuestionnaireSurveyCreate(c *gin.Context) {
service.Error(c, err) service.Error(c, err)
return return
} }
os.Remove(outputPath) fmt.Println("333333333333333333")
outputUrl, ossErr := upload.PutBos(outputPath, upload.PdfType, true) outputUrl, ossErr := upload.PutBos(outputPath, upload.PdfType, true)
fmt.Println("outputUrl======================>>>>", outputUrl)
fmt.Println("ossErr======================>>>>", ossErr)
if ossErr != nil { if ossErr != nil {
service.Error(c, err) service.Error(c, err)
return return