From 267c20fd27560f27ff12b7832c2f344d878b2677 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E2=80=9Cwanyongkang=E2=80=9D?= <“937888580@qq.com”>
Date: Tue, 18 Jan 2022 18:05:12 +0800
Subject: [PATCH] =?UTF-8?q?vps=E5=92=8C=E4=BF=AE=E6=94=B9=E4=BF=A1?=
=?UTF-8?q?=E6=81=AF=E4=B8=8D=E5=B8=A6=E5=AF=86=E7=A0=81?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
Host/Views.Mobile/Shared/_Layout.cshtml | 1 +
Host/Views.Mobile/Shared/_UserLayout.cshtml | 1 +
Host/Views/Home/Index.cshtml | 2 +-
Host/Views/Shared/_Layout.cshtml | 2 +-
Host/Views/Shared/_UserLayout.cshtml | 2 +-
.../Hncore.Pass.BaseInfo/Controllers/UserController.cs | 8 +++-----
6 files changed, 8 insertions(+), 8 deletions(-)
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)
{