diff --git a/business/jxstore/cms/system_store_sku.go b/business/jxstore/cms/system_store_sku.go index d0059e1c6..e8d6bff75 100644 --- a/business/jxstore/cms/system_store_sku.go +++ b/business/jxstore/cms/system_store_sku.go @@ -1,7 +1,6 @@ package cms import ( - "encoding/json" "fmt" "git.rosy.net.cn/baseapi/platformapi/ebaiapi" "git.rosy.net.cn/jx-callback/business/jxutils/tasksch" @@ -264,7 +263,7 @@ func BatchInitSkuMT2MT(ctx *jxcontext.Context, fromSku []*mtwmapi.AppFood, toApi if v.SkuId == "" { v.SkuId = storeSku.AppFoodCode } - salesCycle, _ := json.Marshal(v.AvailableTimes) + // salesCycle, _ := json.Marshal(v.AvailableTimes) mapSkuList := utils.Struct2MapByJson(v) if v.BoxNum == "" { delete(mapSkuList, "box_num") @@ -275,7 +274,8 @@ func BatchInitSkuMT2MT(ctx *jxcontext.Context, fromSku []*mtwmapi.AppFood, toApi if v.Upc != "" { upc = v.Upc } - mapSkuList["available_times"] = string(salesCycle) + //mapSkuList["available_times"] = string(salesCycle) + mapSkuList["available_times"] = v.AvailableTimes skus = append(skus, mapSkuList) } foodData["skus"] = skus @@ -314,8 +314,6 @@ func BatchInitSkuMT2MT(ctx *jxcontext.Context, fromSku []*mtwmapi.AppFood, toApi } foodDataList[k] = foodData - globals.SugarLogger.Debugf("=============fromSku := %s", utils.Format4Output(storeSku, false)) - globals.SugarLogger.Debugf("=============foodDataList := %s", utils.Format4Output(foodData, false)) } count := len(foodDataList) / 10