|
@@ -316,7 +316,7 @@ func (this *MicroRoadShowController) CommentAdd() {
|
|
|
item.ActivityId = sourceId
|
|
|
item.ActivityVoiceId = activityVoiceInfo.ActivityVoiceId
|
|
|
err = models.UpdateActivityVoiceCommentNum(sourceId)
|
|
|
- if err == nil {
|
|
|
+ if err != nil {
|
|
|
br.Msg = "操作失败"
|
|
|
br.ErrMsg = "操作失败 ,更新活动音频留言次数失败:" + strconv.Itoa(sourceId)
|
|
|
return
|
|
@@ -331,7 +331,7 @@ func (this *MicroRoadShowController) CommentAdd() {
|
|
|
item.VideoId = activityInfo.VideoId
|
|
|
item.ActivityId = sourceId
|
|
|
err = models.UpdateActivityVideoCommentNum(sourceId)
|
|
|
- if err == nil {
|
|
|
+ if err != nil {
|
|
|
br.Msg = "操作失败"
|
|
|
br.ErrMsg = "操作失败 ,更新活动视频留言次数失败:" + strconv.Itoa(sourceId)
|
|
|
return
|