This commit is contained in:
邹宗楠
2024-11-26 16:44:38 +08:00
parent ca0a6ca294
commit 886ce0db62

View File

@@ -332,6 +332,9 @@ func (p *PurchaseHandler) createOrUpdateStoreSkus(ctx *jxcontext.Context, storeI
} else {
syncType = "更新商品"
}
if storeID == 669149 {
globals.SugarLogger.Debugf("---------storeSkuList := %s", utils.Format4Output(storeSkuList, false))
}
for i, storeSku := range storeSkuList {
isNeedUpdatePrice := isCreate //storeSku.SkuSyncStatus&(model.SyncFlagPriceMask|model.SyncFlagNewMask) != 0
foodData := make(map[string]interface{})
@@ -445,6 +448,10 @@ func (p *PurchaseHandler) createOrUpdateStoreSkus(ctx *jxcontext.Context, storeI
}
}
if storeID == 669149 {
globals.SugarLogger.Debugf("---------foodDataList:%s", utils.Format4Output(foodDataList, false))
}
if globals.EnableMtwmStoreWrite {
if len(foodDataList) == 1 {
foodDataList[0]["skus"] = string(utils.MustMarshal(foodDataList[0]["skus"]))