1
This commit is contained in:
@@ -44,7 +44,6 @@ func TryUnmarshalUseNumber(data []byte, result interface{}) error {
|
||||
|
||||
// 这个函数将解析json,返回的map中的字段类型与structObj中的完全一样的
|
||||
func Unmarshal2Map(data []byte, structObj interface{}) (resultMap map[string]interface{}, err error) {
|
||||
globals.SugarLogger.Debugf("进入Unmarshal2Map")
|
||||
if err = json.Unmarshal(data, structObj); err == nil {
|
||||
if err = json.Unmarshal(data, &resultMap); err == nil {
|
||||
m := Struct2MapByJson(structObj)
|
||||
|
||||
Reference in New Issue
Block a user