wp
workabee 2 weeks ago
parent 243f5bcc2a
commit 8e49e8a76b

@ -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)

Loading…
Cancel
Save