lihao 4 rokov pred
rodič
commit
991d016694

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