lihao 4 years ago
parent
commit
a286561fc4
1 changed files with 2 additions and 0 deletions
  1. 2 0
      gx_api/GxPress/Service/GxPress.Service.Implement/UserService.cs

+ 2 - 0
gx_api/GxPress/Service/GxPress.Service.Implement/UserService.cs

@@ -550,6 +550,8 @@ namespace GxPress.Service.Implement
                 user.IsMute = request.IsMute == 1;
             if (!string.IsNullOrWhiteSpace(request.DisableTiem))
                 user.DisableTiem = Convert.ToDateTime(request.DisableTiem);
+            if (request.IsNotice > 0)
+                user.IsNotice = request.IsNotice == 1;
             return await _userRepository.UpdateAsync(user);
         }