This commit is contained in:
邹宗楠
2023-09-22 13:42:17 +08:00
parent 5897e021c4
commit 1189a6c5b5

View File

@@ -171,7 +171,7 @@ func BatchInitData(ctx *jxcontext.Context, fromSku []*mtwmapi.AppFood, toApi *mt
if skus[i2].Weight != "" && skus[i2].WeightForUnit != "" { if skus[i2].Weight != "" && skus[i2].WeightForUnit != "" {
skus[i2].WeightForUnit = "" skus[i2].WeightForUnit = ""
} }
skus2 = append(skus2, skus2[i2]) skus2 = append(skus2, skus[i2])
} }
skusString, err := json.Marshal(skus2) skusString, err := json.Marshal(skus2)
if err != nil { if err != nil {