ziwen 2 年之前
父節點
當前提交
2befcc4e66
共有 1 個文件被更改,包括 3 次插入0 次删除
  1. 3 0
      controllers/user.go

+ 3 - 0
controllers/user.go

@@ -889,6 +889,7 @@ func (this *UserController) CommnetList() {
 		}
 		if comment.ArticleId > 0 {
 			item.RedirectType = 1
+			item.Id = item.ArticleId
 		} else if comment.IndustryId > 0 {
 			detail, err := models.GetIndustrialManagementDetail(comment.IndustryId)
 			if err != nil {
@@ -897,9 +898,11 @@ func (this *UserController) CommnetList() {
 				return
 			}
 			item.RedirectType = 3
+			item.Id = item.VideoId
 			item.ChartPermissionId = detail.ChartPermissionId
 		} else if comment.ActivityId > 0 {
 			item.RedirectType = 2
+			item.Id = item.ActivityId
 		}
 		resp.List = append(resp.List, &item)
 	}