Beispiel #1
0
        public async Task <IActionResult> GetUserInfo(string code, string token)
        {
            var _userid = await _ddHelper.GetUserIdAsync(token, code);

            var userInfo = await _ddHelper.GetUserInfoAsync(token, _userid);

            ResultModel.ResultInfo <object> result = new ResultModel.ResultInfo <object>();
            result.Data    = userInfo;
            result.Code    = ResultModel.ResultCode.Success;
            result.Message = "免登录,获取个人信息成功!";
            return(Ok(result));
        }