|
@@ -390,7 +390,12 @@ func (this *MicroRoadShowController) CommentAdd() {
|
|
|
item.Title = activityVoiceInfo.VoiceName
|
|
|
item.ActivityVoiceId = activityVoiceInfo.ActivityVoiceId
|
|
|
title = activityVoiceInfo.VoiceName
|
|
|
- //resourceId = activityVoiceInfo.ActivityId
|
|
|
+ err = models.UpdateActivityVoiceCommentNum(sourceId)
|
|
|
+ if err == nil {
|
|
|
+ br.Msg = "操作失败"
|
|
|
+ br.ErrMsg = "操作失败 ,更新活动音频留言次数失败:" + strconv.Itoa(sourceId)
|
|
|
+ return
|
|
|
+ }
|
|
|
} else if sourceType == 2 {
|
|
|
activityInfo, _ := models.GetCygxActivityVideoByActivityIdInfo(sourceId)
|
|
|
if activityInfo == nil {
|
|
@@ -402,7 +407,12 @@ func (this *MicroRoadShowController) CommentAdd() {
|
|
|
item.VideoId = activityInfo.Id
|
|
|
item.ActivityId = activityInfo.ActivityId
|
|
|
title = activityInfo.Title
|
|
|
- //resourceId = activityInfo.ActivityId
|
|
|
+ err = models.UpdateActivityVideoCommentNum(sourceId)
|
|
|
+ if err == nil {
|
|
|
+ br.Msg = "操作失败"
|
|
|
+ br.ErrMsg = "操作失败 ,更新活动视频留言次数失败:" + strconv.Itoa(sourceId)
|
|
|
+ return
|
|
|
+ }
|
|
|
} else if sourceType == 3 {
|
|
|
item.VideoId = sourceId
|
|
|
microVideo, e := models.GetMicroRoadshowVideoById(sourceId)
|
|
@@ -421,7 +431,7 @@ func (this *MicroRoadShowController) CommentAdd() {
|
|
|
go services.AddCygxAskserieVideoCollection(user, item.AskserieVideoId, req.Content)
|
|
|
}
|
|
|
var isResearch bool // 是否属于研选
|
|
|
- if sourceType == 2 || sourceType == 3 {
|
|
|
+ if sourceType == 1 || sourceType == 2 {
|
|
|
detail, err := models.GetAddActivityInfoById(sourceId)
|
|
|
if err != nil {
|
|
|
br.Msg = "操作失败"
|
|
@@ -663,7 +673,6 @@ func (this *MicroRoadShowController) Collect() {
|
|
|
br.Msg = "收藏成功"
|
|
|
resp.Status = 1
|
|
|
// 文章收藏消息发送
|
|
|
- //go services.ArticleUserRemind(user, detail, 2)
|
|
|
} else {
|
|
|
err = models.RemoveAskserieVideoCollect(uid, sourceId)
|
|
|
if err != nil {
|