修改导出文件乱码
This commit is contained in:
parent
bafc3625dd
commit
6bba2564bc
@ -6,6 +6,7 @@ import (
|
|||||||
"fmt"
|
"fmt"
|
||||||
"io/ioutil"
|
"io/ioutil"
|
||||||
"net/http"
|
"net/http"
|
||||||
|
"net/url"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/360EntSecGroup-Skylar/excelize"
|
"github.com/360EntSecGroup-Skylar/excelize"
|
||||||
@ -200,7 +201,7 @@ func ExportRegister(c *gin.Context) {
|
|||||||
httpType = model.HttpType
|
httpType = model.HttpType
|
||||||
}
|
}
|
||||||
var exportUrl string
|
var exportUrl string
|
||||||
exportUrl = fmt.Sprintf("%s%s/api/static/%s", httpType, c.Request.Host, exportFileName)
|
exportUrl = fmt.Sprintf("%s%s/api/static/%s", httpType, c.Request.Host, url.PathEscape(exportFileName))
|
||||||
response.ResponseQuickMsg(c, msg.Ok, resp.Msg, map[string]string{
|
response.ResponseQuickMsg(c, msg.Ok, resp.Msg, map[string]string{
|
||||||
"exportUrl": exportUrl,
|
"exportUrl": exportUrl,
|
||||||
})
|
})
|
||||||
|
Loading…
Reference in New Issue
Block a user