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