From 8e49e8a76b5afd452501965d8e1077a60b52c00e Mon Sep 17 00:00:00 2001 From: workabee <2950914812@qq.com> Date: Wed, 11 Sep 2024 09:10:50 +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 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/logic/excel.go b/pkg/logic/excel.go index 710d837..2b9b237 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, "e-cdn.fontree.cn") { + if strings.Contains(colCell, "cdn.fontree.cn") || strings.Contains(colCell, "test.szjixun.cn") { suffix = colCell[strings.LastIndex(colCell, "."):] if strings.Contains(".jpg,.png,.gif,.bmp,.jpeg,", suffix) { cellNo = fmt.Sprintf("%s%v", columnFullName, lineNo)