From 243f5bcc2afa29343b9e527cba7e6272788f38ac Mon Sep 17 00:00:00 2001 From: workabee <2950914812@qq.com> Date: Tue, 10 Sep 2024 19:57:27 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pkg/logic/excel.go | 2 +- pkg/service/register_record.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/logic/excel.go b/pkg/logic/excel.go index 9b00c29..710d837 100644 --- a/pkg/logic/excel.go +++ b/pkg/logic/excel.go @@ -41,7 +41,7 @@ func DealExcelImg(filePath string) (err error) { firstCellName = string(firstCell) } columnFullName = fmt.Sprintf("%s%s", firstCellName, columnName) - if strings.Contains(colCell, "cdns.fontree.cn") { + if strings.Contains(colCell, "e-cdn.fontree.cn") { suffix = colCell[strings.LastIndex(colCell, "."):] if strings.Contains(".jpg,.png,.gif,.bmp,.jpeg,", suffix) { cellNo = fmt.Sprintf("%s%v", columnFullName, lineNo) diff --git a/pkg/service/register_record.go b/pkg/service/register_record.go index f3faf36..ee94121 100644 --- a/pkg/service/register_record.go +++ b/pkg/service/register_record.go @@ -159,7 +159,7 @@ func ExportRegister(c *gin.Context) { resp.Data = []*exhibition.ExportInfo{} } columns := []string{"画家姓名", "性别", "手机号", "身份证号", "通讯地址", "身份证照片", "本人近照", "报名时间", "更新时间"} - exportFileName := fmt.Sprintf("国展报名%s.xlsx", time.Now().Format("20060102")) + exportFileName := fmt.Sprintf("%s迁想妙得.xlsx", time.Now().Format("20060102")) filePath := fmt.Sprintf("./runtime/%s", exportFileName) data := make([]interface{}, 0) for _, v := range resp.Data {