This commit is contained in:
eson 2023-09-22 12:31:24 +08:00
parent cc7d7361d4
commit 8b81308bd2

View File

@ -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)
}
}