Browse Source

no message

xingzai 1 year ago
parent
commit
51128b402b
1 changed files with 2 additions and 2 deletions
  1. 2 2
      controllers/micro_roadshow.go

+ 2 - 2
controllers/micro_roadshow.go

@@ -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