Update imageContentImport.go
This commit is contained in:
parent
28e7e3beba
commit
e7aae9247c
@ -180,19 +180,19 @@ func readExcel(excelPath string) ([]excelData, error) {
|
|||||||
if subNum == "" {
|
if subNum == "" {
|
||||||
return nil, fmt.Errorf("第%d行应该有编号", i+1)
|
return nil, fmt.Errorf("第%d行应该有编号", i+1)
|
||||||
}
|
}
|
||||||
blueSky := getCellValue(f, sheetName, i, 3)
|
blueSky := getCellValue(f, sheetName, i, 2)
|
||||||
if blueSky == "" {
|
if blueSky == "" {
|
||||||
return nil, fmt.Errorf("第%d行应该有bluesky账号昵称", i+1)
|
return nil, fmt.Errorf("第%d行应该有bluesky账号昵称", i+1)
|
||||||
}
|
}
|
||||||
tikTok := getCellValue(f, sheetName, i, 4)
|
tikTok := getCellValue(f, sheetName, i, 3)
|
||||||
if tikTok == "" {
|
if tikTok == "" {
|
||||||
return nil, fmt.Errorf("第%d行应该有tiktok账号昵称", i+1)
|
return nil, fmt.Errorf("第%d行应该有tiktok账号昵称", i+1)
|
||||||
}
|
}
|
||||||
youtube := getCellValue(f, sheetName, i, 5)
|
youtube := getCellValue(f, sheetName, i, 4)
|
||||||
if youtube == "" {
|
if youtube == "" {
|
||||||
return nil, fmt.Errorf("第%d行应该有youtube账号昵称", i+1)
|
return nil, fmt.Errorf("第%d行应该有youtube账号昵称", i+1)
|
||||||
}
|
}
|
||||||
instagram := getCellValue(f, sheetName, i, 6)
|
instagram := getCellValue(f, sheetName, i, 5)
|
||||||
if instagram == "" {
|
if instagram == "" {
|
||||||
return nil, fmt.Errorf("第%d行应该有ins账号昵称", i+1)
|
return nil, fmt.Errorf("第%d行应该有ins账号昵称", i+1)
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user