修改导出文件

This commit is contained in:
孙肖扬 2025-03-05 16:49:39 +08:00
parent c092ced2c2
commit 99be4c6a15

View File

@ -15,7 +15,6 @@ import (
"github.com/exhibition-main/internal/model"
"github.com/exhibition-main/internal/msg"
"github.com/exhibition-main/internal/response"
"github.com/exhibition-main/pkg/logic"
"github.com/exhibition-main/pkg/utils"
"github.com/gin-gonic/gin"
"github.com/gin-gonic/gin/binding"
@ -189,11 +188,11 @@ func ExportRegister(c *gin.Context) {
response.ResponseQuickMsg(c, msg.Fail, err.Error(), nil)
}
//处理图片
err = logic.DealExcelImg(filePath)
if err != nil {
response.ResponseQuickMsg(c, msg.Fail, err.Error(), nil)
return
}
// err = logic.DealExcelImg(filePath)
// if err != nil {
// response.ResponseQuickMsg(c, msg.Fail, err.Error(), nil)
// return
// }
var httpType string
if config.Data.System.IsHttps {
httpType = model.HttpsType