This commit is contained in:
邹宗楠
2022-12-22 10:44:29 +08:00
parent 4f76814319
commit be5f905848
2 changed files with 10 additions and 9 deletions

View File

@@ -343,6 +343,7 @@ func (p *PurchaseHandler) createOrUpdateStoreSkus(ctx *jxcontext.Context, storeI
}
}
globals.SugarLogger.Debugf("foodDataList=======mtwm %s", utils.Format4Output(foodDataList, false))
if globals.EnableMtwmStoreWrite {
if len(foodDataList) == 1 {
foodDataList[0]["skus"] = string(utils.MustMarshal(foodDataList[0]["skus"]))