1
This commit is contained in:
@@ -296,6 +296,7 @@ func BatchInitSkuMT2MT(ctx *jxcontext.Context, fromSku []*mtwmapi.AppFood, toApi
|
||||
|
||||
skus := make([]interface{}, 0)
|
||||
upc := ""
|
||||
foodData["available_times"] = ""
|
||||
for _, v := range storeSku.SkuList {
|
||||
if v.Stock == "" {
|
||||
v.Stock = "99999"
|
||||
@@ -322,6 +323,8 @@ func BatchInitSkuMT2MT(ctx *jxcontext.Context, fromSku []*mtwmapi.AppFood, toApi
|
||||
}
|
||||
delete(mapSkuList, "min_order_count")
|
||||
if v.AvailableTimes != nil {
|
||||
availableTimes, _ := json.Marshal(mapSkuList["available_times"])
|
||||
foodData["available_times"] = string(availableTimes)
|
||||
delete(mapSkuList, "available_times")
|
||||
}
|
||||
if v.Upc != "" {
|
||||
|
||||
Reference in New Issue
Block a user