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