力荐商品代码优化

This commit is contained in:
苏尹岚
2020-03-09 14:02:27 +08:00
parent 0ed8bfbd92
commit bd66b3e303

View File

@@ -3402,6 +3402,9 @@ func UpdateStoreSkusSpecTagBin(ctx *jxcontext.Context, reader io.Reader, vendorI
continue
}
food, err := api.MtwmAPI.RetailGet(store.VendorStoreID, utils.Int2Str(v.SkuID))
if err != nil || food == nil {
continue
}
var foodData = make(map[string]interface{})
if v.IsSpec != 0 && v.IsSpec == -1 {
v.IsSpec = 0