lihao 4 年之前
父節點
當前提交
a286561fc4
共有 1 個文件被更改,包括 2 次插入0 次删除
  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);
         }