个人中心
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)
{