修改导出文件乱码

This commit is contained in:
孙肖扬 2025-03-05 17:13:51 +08:00
parent cf7529fa01
commit 29309cd960

View File

@ -6,7 +6,6 @@ import (
"fmt"
"io/ioutil"
"net/http"
"net/url"
"time"
"github.com/360EntSecGroup-Skylar/excelize"
@ -201,7 +200,7 @@ func ExportRegister(c *gin.Context) {
httpType = model.HttpType
}
var exportUrl string
exportUrl = fmt.Sprintf("%s%s/api/static/%s", httpType, c.Request.Host, url.PathEscape(exportFileName))
exportUrl = fmt.Sprintf("%s%s/static/%s", httpType, c.Request.Host, exportFileName)
response.ResponseQuickMsg(c, msg.Ok, resp.Msg, map[string]string{
"exportUrl": exportUrl,
})