info
This commit is contained in:
parent
cc7d7361d4
commit
8b81308bd2
|
@ -229,7 +229,7 @@ func (l *InfoLogic) Info(req *types.UserInfoRequest, userinfo *auth.UserInfo) (r
|
|||
|
||||
curValue, err := GetMapValueByKey(info, strings.Split(k, ".")[2:])
|
||||
if err != nil {
|
||||
logx.Error(err)
|
||||
logx.Error(err, info)
|
||||
continue
|
||||
// return resp.SetStatus(basic.CodeOK, metadict)
|
||||
}
|
||||
|
@ -251,10 +251,10 @@ func GetMapValueByKey(info map[string]interface{}, keys []string) (interface{},
|
|||
if curMap, ok := cur.(map[string]interface{}); ok {
|
||||
info = curMap
|
||||
} else {
|
||||
return nil, fmt.Errorf("keys is not exists %#v", keys)
|
||||
return nil, fmt.Errorf("curMap keys is not exists %#v", keys)
|
||||
}
|
||||
} else {
|
||||
return nil, fmt.Errorf("keys is not exists %#v", keys)
|
||||
return nil, fmt.Errorf("info keys is not exists %#v", keys)
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user