|
@@ -333,6 +333,15 @@ func (this *MicroRoadShowController) CommentAdd() {
|
|
|
item.IndustryId = req.Id
|
|
|
} else if sourceType == 2 {
|
|
|
item.ActivityId = req.Id
|
|
|
+ } else if sourceType == 3 {
|
|
|
+ item.VideoId = req.Id
|
|
|
+ microVideo, e := models.GetMicroRoadshowVideoById(req.Id)
|
|
|
+ if e != nil {
|
|
|
+ br.Msg = "操作失败"
|
|
|
+ br.ErrMsg = "微路演视频信息有误, 不存在的VideoId: " + strconv.Itoa(req.Id)
|
|
|
+ return
|
|
|
+ }
|
|
|
+ item.IndustryId = microVideo.IndustryId
|
|
|
}
|
|
|
_, err = models.AddArticleComment(&item)
|
|
|
if err != nil {
|