1
This commit is contained in:
@@ -1033,7 +1033,9 @@ func GetTiktokImgList(api *tiktokShop.API, storeId string, skuId int, detailImg,
|
||||
localTiktokObj.Img4 = tiktokImg[2]
|
||||
localTiktokObj.Img5 = tiktokImg[3]
|
||||
}
|
||||
|
||||
if localTiktokObj.Img == "" && localTiktokObj.Img2 == "" && localTiktokObj.Img3 == "" && localTiktokObj.Img4 == "" && localTiktokObj.Img5 == "" {
|
||||
return "", "", "", errors.New("图片数据为空")
|
||||
}
|
||||
dao.CreateEntity(dao.GetDB(), localTiktokObj)
|
||||
return strings.Join(tiktokImg, "|"), detailTiktok, whiteTiktok, nil
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user