This commit is contained in:
邹宗楠
2023-08-09 16:46:10 +08:00
parent 1edb98d9f6
commit 19f7a93c8d
3 changed files with 7 additions and 261 deletions

View File

@@ -537,6 +537,7 @@ func uploadImg(api *tao_vegetable.API, skuId, vendorId int, imgs []string) *stri
taoImgs.VendorID = vendorId
dao.CreateEntity(dao.GetDB(), taoImgs)
}
// 商品图片最多五张
if len(result) > 5 {
return utils.String2Pointer(strings.Join(result[1:], ","))