This commit is contained in:
邹宗楠
2024-07-16 17:08:30 +08:00
parent c40e7f93ce
commit 7783776a41

View File

@@ -449,7 +449,9 @@ func (p *PurchaseHandler) createOrUpdateStoreSkus(ctx *jxcontext.Context, storeI
if globals.EnableMtwmStoreWrite {
if len(foodDataList) == 1 {
foodDataList[0]["skus"] = string(utils.MustMarshal(foodDataList[0]["skus"]))
globals.SugarLogger.Debugf("=============storeSkuList[0] = %s", utils.Format4Output(foodDataList[0], false))
if err = getAPI(getStoreVendorOrgCode(storeID), storeID, vendorStoreID).RetailInitData(ctx.GetTrackInfo(), vendorStoreID, utils.Int2Str(storeSkuList[0].SkuID), foodDataList[0]); err != nil {
globals.SugarLogger.Debugf("=============err[0] = %v", err)
failedList = putils.GetErrMsg2FailedSingleList(storeSkuList, err, storeID, model.VendorChineseNames[model.VendorIDMTWM], syncType)
}
} else if len(foodDataList) > 0 {