lihao 4 years ago
parent
commit
824ffcbf4b

+ 4 - 0
gx_api/GxPress/Service/GxPress.Service.Implement/Note/NoteService.cs

@@ -351,6 +351,10 @@ namespace GxPress.Service.Implement.Note
                         var userName = await _userRepository.GetNameAsync(data.SourceUserId);
                         data.Author = userName;
                     }
+                    if (string.IsNullOrEmpty(data.Title))
+                        data.Title = string.Empty;
+                    if (string.IsNullOrEmpty(data.FileName))
+                        data.FileName = string.Empty;
                 }
             }