This commit is contained in:
邹宗楠
2024-11-21 14:58:45 +08:00
parent 7a8bf1b330
commit e3a7d8c112

View File

@@ -363,7 +363,7 @@ func (p *PurchaseHandler) createOrUpdateStoreSkus(ctx *jxcontext.Context, storeI
foodData["sell_point"] = storeSku.SellPoint
}
if storeSku.SellPointTimes != "" {
foodData["sell_point_times"] = storeSku.SellPointTimes
foodData["sell_point_available_times"] = storeSku.SellPointTimes
}
catCode := tryCatName2Code(storeSku.VendorCatID)
if catCode != "" {
@@ -445,10 +445,6 @@ func (p *PurchaseHandler) createOrUpdateStoreSkus(ctx *jxcontext.Context, storeI
}
}
if storeID == 800369 {
globals.SugarLogger.Debugf("------foodDataList---%s", utils.Format4Output(foodDataList, false))
globals.SugarLogger.Debugf("------storeSkuList---%s", utils.Format4Output(storeSkuList, false))
}
if globals.EnableMtwmStoreWrite {
if len(foodDataList) == 1 {
foodDataList[0]["skus"] = string(utils.MustMarshal(foodDataList[0]["skus"]))