Compare commits

..

No commits in common. "1ea452bede0cddfe24dba534f652b74c90ee4606" and "5a8574723fd59e4015894c6b93bfdc8e051f6d37" have entirely different histories.

View File

@ -147,7 +147,7 @@ func ExportRegister(c *gin.Context) {
resp.Data = []*exhibition.ExportInfo{} resp.Data = []*exhibition.ExportInfo{}
} }
columns := []string{"画家姓名", "性别", "手机号", "身份证号", "通讯地址", "身份证照片", "本人近照", "报名时间", "更新时间"} columns := []string{"画家姓名", "性别", "手机号", "身份证号", "通讯地址", "身份证照片", "本人近照", "报名时间", "更新时间"}
exportFileName := fmt.Sprintf("国展报名%s.xlsx", time.Now().Format("20060101")) exportFileName := fmt.Sprintf("国展报名%v.xlsx", time.Now().Format("20060101"))
filePath := fmt.Sprintf("./runtime/%s", exportFileName) filePath := fmt.Sprintf("./runtime/%s", exportFileName)
data := make([]interface{}, 0) data := make([]interface{}, 0)
for _, v := range resp.Data { for _, v := range resp.Data {
@ -182,8 +182,7 @@ func ExportRegister(c *gin.Context) {
} else { } else {
httpType = model.HttpType httpType = model.HttpType
} }
var exportUrl string var exportUrl string = fmt.Sprintf("%s%s/static/%s", httpType, c.Request.Host, exportFileName)
exportUrl = fmt.Sprintf("%s%s/static/%s", httpType, c.Request.Host, 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,