|
@@ -889,7 +889,6 @@ 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 {
|
|
@@ -898,11 +897,11 @@ func (this *UserController) CommnetList() {
|
|
|
return
|
|
|
}
|
|
|
item.RedirectType = 3
|
|
|
- item.Id = item.VideoId
|
|
|
item.ChartPermissionId = detail.ChartPermissionId
|
|
|
- } else if comment.ActivityId > 0 {
|
|
|
+ } else if comment.ActivityId > 0 && comment.VideoId == 0 {
|
|
|
item.RedirectType = 2
|
|
|
- item.Id = item.ActivityId
|
|
|
+ } else if comment.IndustryId == 0 && comment.VideoId > 0 {
|
|
|
+ item.RedirectType = 4
|
|
|
}
|
|
|
resp.List = append(resp.List, &item)
|
|
|
}
|