- don't use Unmarshal2Map

- recaculate sku price in updateSku
This commit is contained in:
gazebo
2019-01-31 15:52:16 +08:00
parent 16e9a6a5cb
commit 375e857e33
5 changed files with 26 additions and 11 deletions

View File

@@ -21,7 +21,6 @@ func NormalMakeMapByStructObject(mapData map[string]interface{}, obj interface{}
return retVal
}
// 此函数要求mapData中的数据类型是完全正确的可利用函数utils.Unmarshal2Map比如整数浮点不能为通用的Number型
func StrictMakeMapByStructObject(mapData map[string]interface{}, obj interface{}, userName string) (retVal map[string]interface{}) {
retVal, _ = IDCULDFilterMapByStructObject(mapData, obj, true)
return retVal