lihao 4 年之前
父節點
當前提交
824ffcbf4b
共有 1 個文件被更改,包括 4 次插入0 次删除
  1. 4 0
      gx_api/GxPress/Service/GxPress.Service.Implement/Note/NoteService.cs

+ 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;
                 }
             }