ziwen 2 жил өмнө
parent
commit
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)
 	}