1
This commit is contained in:
@@ -3073,7 +3073,6 @@ func UpdateVendorImg(ctx *jxcontext.Context, storeId int, imgWaterMark string, v
|
|||||||
for {
|
for {
|
||||||
foodList, _ := api.RetailListAll(storeDetail.VendorStoreID, i)
|
foodList, _ := api.RetailListAll(storeDetail.VendorStoreID, i)
|
||||||
for _, v := range foodList {
|
for _, v := range foodList {
|
||||||
if v.AppFoodCode == "mtcode_1945736904897372255" { // 测试
|
|
||||||
skuEx := &model.SkuExinfoMap{
|
skuEx := &model.SkuExinfoMap{
|
||||||
NameID: storeId,
|
NameID: storeId,
|
||||||
ImgWatermark: v.PictureList[0], // 原图
|
ImgWatermark: v.PictureList[0], // 原图
|
||||||
@@ -3105,14 +3104,11 @@ func UpdateVendorImg(ctx *jxcontext.Context, storeId int, imgWaterMark string, v
|
|||||||
param["name"] = fmt.Sprintf("%s %s", exPrefix, v.Name)
|
param["name"] = fmt.Sprintf("%s %s", exPrefix, v.Name)
|
||||||
}
|
}
|
||||||
api.RetailInitData(utils.GetUUID(), storeDetail.VendorStoreID, v.AppFoodCode, param)
|
api.RetailInitData(utils.GetUUID(), storeDetail.VendorStoreID, v.AppFoodCode, param)
|
||||||
globals.SugarLogger.Debugf("------qiNiuImg := %s", qiNiuImg)
|
|
||||||
globals.SugarLogger.Debugf("------ImgMix := %s", ImgMix)
|
|
||||||
jxutils.DeleteExportContent(strings.Split(qiNiuImg, "/")[3])
|
jxutils.DeleteExportContent(strings.Split(qiNiuImg, "/")[3])
|
||||||
jxutils.DeleteExportContent(strings.Split(ImgMix, "/")[3])
|
jxutils.DeleteExportContent(strings.Split(ImgMix, "/")[3])
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
|
||||||
if len(foodList) < 100 {
|
if len(foodList) < 100 {
|
||||||
break
|
break
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user