Merge branch 'wp'

This commit is contained in:
workabee 2024-09-11 09:11:32 +08:00
commit 9fd5e0ad27

View File

@ -41,7 +41,7 @@ func DealExcelImg(filePath string) (err error) {
firstCellName = string(firstCell) firstCellName = string(firstCell)
} }
columnFullName = fmt.Sprintf("%s%s", firstCellName, columnName) 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, "."):] suffix = colCell[strings.LastIndex(colCell, "."):]
if strings.Contains(".jpg,.png,.gif,.bmp,.jpeg,", suffix) { if strings.Contains(".jpg,.png,.gif,.bmp,.jpeg,", suffix) {
cellNo = fmt.Sprintf("%s%v", columnFullName, lineNo) cellNo = fmt.Sprintf("%s%v", columnFullName, lineNo)