lihao 4 年之前
父节点
当前提交
ae3ba12c06
共有 1 个文件被更改,包括 6 次插入0 次删除
  1. 6 0
      gx_api/GxPress/Service/GxPress.Service.Implement/Topic/TopicService.cs

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

@@ -186,7 +186,13 @@ namespace GxPress.Service.Implement.Topic
                             data.Title = string.Empty;
                         if (string.IsNullOrEmpty(data.FileName))
                             data.FileName = string.Empty;
+                        if (data.Type == AllTypeConst.CollectFolder.GetHashCode())
+                        {
+                            var userName = await _userRepository.GetNameAsync(data.SourceUserId);
+                            data.Author = userName;
+                        }
                     }
+
                 }
             }
             return result;