- specially handle places in UpdateSkuName

This commit is contained in:
gazebo
2019-02-15 10:37:04 +08:00
parent 9a9f5d45f1
commit a9346fad2e

View File

@@ -492,6 +492,9 @@ func UpdateSkuName(ctx *jxcontext.Context, nameID int, payload map[string]interf
}
valid := dao.StrictMakeMapByStructObject(payload, skuName, userName)
valid = utils.RemoveGeneralMapKeys(valid, model.FieldSpecQuality, model.FieldSpecUnit)
if places, ok := payload["places"]; ok {
valid["places"] = places
}
if len(valid) > 0 {
globals.SugarLogger.Debugf("UpdateSkuName valid:%s", utils.Format4Output(valid, false))
dao.Begin(db)