| | |
| | | if (newpwd.Length < 6) |
| | | return Error("密码长度不能少于6位"); |
| | | |
| | | var user = _acc.GetAccount(OperatorProvider.Instance.Current.UserId); |
| | | var user = _acc.GetAccountbyId(OperatorProvider.Instance.Current.UserId); |
| | | string passwordmd5old = Encrypt.EncryptionWithSalt(oldpwd, user.UserName, user.Salt); |
| | | if (user.Password != passwordmd5old) |
| | | return Error("旧密码不正确"); |
| | |
| | | /// </summary> |
| | | /// <returns></returns> |
| | | [HttpGet] |
| | | [LoginChecked(true)] |
| | | public ActionResult GetUserVipInfo() |
| | | { |
| | | if (OperatorProvider.Instance.Current == null) return Error("登录超时!请重新登录!"); |
| | | //if (OperatorProvider.Instance.Current == null) return Error("登录超时!请重新登录!"); |
| | | |
| | | var userId = OperatorProvider.Instance.Current.UserId; |
| | | var res = _repo.GetVipInfo(userId).Result; |
| | |
| | | /// </summary> |
| | | /// <returns></returns> |
| | | [HttpGet] |
| | | [LoginChecked(true)] |
| | | public ActionResult GetUserInfo(string userId) |
| | | { |
| | | if (OperatorProvider.Instance.Current == null) return Error("登录超时!请重新登录!"); |
| | | //if (OperatorProvider.Instance.Current == null) return Error("登录超时!请重新登录!"); |
| | | |
| | | userId = string.IsNullOrWhiteSpace(userId) ? OperatorProvider.Instance.Current.UserId : userId; |
| | | var res = _repo.GetModelAsync(a => a.Id == userId).Result; |