diff --git a/plugin/api/account/account.go b/plugin/api/account/account.go index 9e14a402..e7a03a12 100644 --- a/plugin/api/account/account.go +++ b/plugin/api/account/account.go @@ -103,17 +103,18 @@ func (h Account) Profile(w http.ResponseWriter, r *http.Request, ps httprouter.P h.Error(w, err) return } - user, err := biz.GetUser(reqUser.UserId) - if err != nil { - h.Error(w, err) - return - } + //user, err := biz.GetUser(reqUser.UserId) + //if err != nil { + // h.Error(w, err) + // return + //} + //TODO get user from es u := util.MapStr{ - "id": user.ID, - "username": user.Username, - "email": user.Email, - "phone": user.Phone, - "name": user.Name, + "user_id": reqUser.UserId, + "username": reqUser.Username, + "email": "hello@infini.ltd", + + "name": "admin", } h.WriteOKJSON(w, core.FoundResponse(reqUser.UserId, u)) return