public async Task <BaseResponse <UserInfo> > GetInfoByToken(string token) { var data = new BaseResponse <UserInfo>(); if (!string.IsNullOrEmpty(token)) { var tokenModel = JwtHelper.SerializeJwt(token); if (tokenModel != null && tokenModel.Uid > 0) { var userinfo = await _sysUserInfoServices.QueryById(tokenModel.Uid); if (userinfo != null) { data.Data = userinfo; data.Msg = "获取成功"; } } } return(data); }