This commit is contained in:
邹宗楠
2025-02-12 09:19:49 +08:00
parent 08fedfb1e1
commit 095e3781f4

View File

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