Update imageContentImport.go

This commit is contained in:
bx1834938347-prog 2026-01-08 13:31:03 +08:00
parent e7aae9247c
commit 646b4c7f3f

View File

@ -189,13 +189,7 @@ func readExcel(excelPath string) ([]excelData, error) {
return nil, fmt.Errorf("第%d行应该有tiktok账号昵称", i+1) return nil, fmt.Errorf("第%d行应该有tiktok账号昵称", i+1)
} }
youtube := getCellValue(f, sheetName, i, 4) youtube := getCellValue(f, sheetName, i, 4)
if youtube == "" {
return nil, fmt.Errorf("第%d行应该有youtube账号昵称", i+1)
}
instagram := getCellValue(f, sheetName, i, 5) instagram := getCellValue(f, sheetName, i, 5)
if instagram == "" {
return nil, fmt.Errorf("第%d行应该有ins账号昵称", i+1)
}
desc := getCellValue(f, sheetName, i, 6) desc := getCellValue(f, sheetName, i, 6)
titleRequire := getCellValue(f, sheetName, i, 7) titleRequire := getCellValue(f, sheetName, i, 7)
if titleRequire == "" { if titleRequire == "" {