diff --git a/Host/Views.Mobile/Shared/_Layout.cshtml b/Host/Views.Mobile/Shared/_Layout.cshtml index be3b3ba..fc8b2f7 100644 --- a/Host/Views.Mobile/Shared/_Layout.cshtml +++ b/Host/Views.Mobile/Shared/_Layout.cshtml @@ -216,6 +216,7 @@
  • 线路表
  • 软件下载
  • 教程&咨询
  • +
  • 动态VPS
  • @*
  • 淘宝充值活动
  • *@ @if (user != null) { diff --git a/Host/Views.Mobile/Shared/_UserLayout.cshtml b/Host/Views.Mobile/Shared/_UserLayout.cshtml index 8d7033b..178e6dd 100644 --- a/Host/Views.Mobile/Shared/_UserLayout.cshtml +++ b/Host/Views.Mobile/Shared/_UserLayout.cshtml @@ -53,6 +53,7 @@
  • 线路表
  • 软件下载
  • 教程&咨询
  • +
  • 动态VPS
  • @if (user != null) { diff --git a/Host/Views/Home/Index.cshtml b/Host/Views/Home/Index.cshtml index 90649c7..08977fb 100644 --- a/Host/Views/Home/Index.cshtml +++ b/Host/Views/Home/Index.cshtml @@ -418,7 +418,7 @@
  • IP线路表
  • 软件下载
  • 教程&咨询
  • - @*
  • 淘宝充值活动
  • *@ +
  • 动态VPS
  • @if (user == null) { diff --git a/Host/Views/Shared/_Layout.cshtml b/Host/Views/Shared/_Layout.cshtml index d0c8ae3..e5f602d 100644 --- a/Host/Views/Shared/_Layout.cshtml +++ b/Host/Views/Shared/_Layout.cshtml @@ -223,7 +223,7 @@
  • IP线路表
  • 软件下载
  • 教程&咨询
  • - @*
  • 淘宝充值活动
  • *@ +
  • 动态VPS
  • @if (user == null) { diff --git a/Host/Views/Shared/_UserLayout.cshtml b/Host/Views/Shared/_UserLayout.cshtml index cc02678..ae22440 100644 --- a/Host/Views/Shared/_UserLayout.cshtml +++ b/Host/Views/Shared/_UserLayout.cshtml @@ -165,7 +165,7 @@
  • IP线路表
  • 软件下载
  • 教程&咨询
  • - @*
  • 淘宝充值活动
  • *@ +
  • 动态VPS
  • 个人中心 diff --git a/Services/Hncore.Pass.BaseInfo/Controllers/UserController.cs b/Services/Hncore.Pass.BaseInfo/Controllers/UserController.cs index 1c5c0f7..feb3446 100644 --- a/Services/Hncore.Pass.BaseInfo/Controllers/UserController.cs +++ b/Services/Hncore.Pass.BaseInfo/Controllers/UserController.cs @@ -79,17 +79,15 @@ namespace Hncore.Pass.BaseInfo.Controllers [HttpPost] public async Task Put([FromBody]PostUserRequest request) { - if (request.Password.NotHas()) - { - return Error("密码不能为空"); - } var userEntity = await _userService.GetById(request.Id); userEntity.Phone = request.Phone; userEntity.QQ = request.QQ; userEntity.Wx = request.Wx; userEntity.TaoBao = request.TaoBao; userEntity.Email = request.Email; - userEntity.Password =UserService.HashPassword(request.Password); + if (request.Password.Has()) { + userEntity.Password =UserService.HashPassword(request.Password); + } var ret= await _userService.Update(userEntity); if (ret) {