lihao 4 년 전
부모
커밋
991d016694
1개의 변경된 파일10개의 추가작업 그리고 0개의 파일을 삭제
  1. 10 0
      gx_api/GxPress/Service/GxPress.Service.Implement/Topic/TopicService.cs

+ 10 - 0
gx_api/GxPress/Service/GxPress.Service.Implement/Topic/TopicService.cs

@@ -178,6 +178,16 @@ namespace GxPress.Service.Implement.Topic
                 }
                 if (item.Data == null || item.Data.Count == 0)
                     item.Data = new List<ContentJsonData>();
+                if (item.Data != null)
+                {
+                    foreach (var data in item.Data)
+                    {
+                        if (string.IsNullOrEmpty(data.Title))
+                            data.Title = string.Empty;
+                        if (string.IsNullOrEmpty(data.FileName))
+                            data.FileName = string.Empty;
+                    }
+                }
             }
             return result;
         }