浏览代码

no message

xingzai 1 年之前
父节点
当前提交
68179d2de9
共有 2 个文件被更改,包括 6 次插入6 次删除
  1. 5 5
      controllers/micro_roadshow.go
  2. 1 1
      services/wx_template_msg.go

+ 5 - 5
controllers/micro_roadshow.go

@@ -363,7 +363,7 @@ func (this *MicroRoadShowController) CommentAdd() {
 		Title:       req.Title,
 		Title:       req.Title,
 	}
 	}
 
 
-	var resourceId int
+	//var resourceId int
 	if sourceType == 1 {
 	if sourceType == 1 {
 		activityVoiceInfo, _ := models.GetCygxActivityVoiceByActivityId(req.Id)
 		activityVoiceInfo, _ := models.GetCygxActivityVoiceByActivityId(req.Id)
 		if activityVoiceInfo == nil {
 		if activityVoiceInfo == nil {
@@ -373,7 +373,7 @@ func (this *MicroRoadShowController) CommentAdd() {
 		}
 		}
 		item.ActivityId = req.Id
 		item.ActivityId = req.Id
 		item.ActivityVoiceId = activityVoiceInfo.ActivityVoiceId
 		item.ActivityVoiceId = activityVoiceInfo.ActivityVoiceId
-		resourceId = activityVoiceInfo.ActivityId
+		//resourceId = activityVoiceInfo.ActivityId
 	} else if sourceType == 2 {
 	} else if sourceType == 2 {
 		activityInfo, _ := models.GetCygxActivityVideoByActivityId(req.Id)
 		activityInfo, _ := models.GetCygxActivityVideoByActivityId(req.Id)
 		if activityInfo == nil {
 		if activityInfo == nil {
@@ -383,7 +383,7 @@ func (this *MicroRoadShowController) CommentAdd() {
 		}
 		}
 		item.VideoId = activityInfo.VideoId
 		item.VideoId = activityInfo.VideoId
 		item.ActivityId = req.Id
 		item.ActivityId = req.Id
-		resourceId = activityInfo.ActivityId
+		//resourceId = activityInfo.ActivityId
 	} else if sourceType == 3 {
 	} else if sourceType == 3 {
 		item.VideoId = req.Id
 		item.VideoId = req.Id
 		microVideo, e := models.GetMicroRoadshowVideoById(req.Id)
 		microVideo, e := models.GetMicroRoadshowVideoById(req.Id)
@@ -393,7 +393,7 @@ func (this *MicroRoadShowController) CommentAdd() {
 			return
 			return
 		}
 		}
 		item.IndustryId = microVideo.IndustryId
 		item.IndustryId = microVideo.IndustryId
-		resourceId = microVideo.IndustryId
+		//resourceId = microVideo.IndustryId
 	}
 	}
 
 
 	if sourceType == 2 || sourceType == 3 {
 	if sourceType == 2 || sourceType == 3 {
@@ -414,7 +414,7 @@ func (this *MicroRoadShowController) CommentAdd() {
 		br.ErrMsg = "提交留言失败,Err:" + err.Error()
 		br.ErrMsg = "提交留言失败,Err:" + err.Error()
 		return
 		return
 	}
 	}
-	services.SendWxMsgWithMicroRoadshowAsk(req, user, resourceId, int(msgId), title, isResearch)
+	services.SendWxMsgWithMicroRoadshowAsk(req, user, sourceType, int(msgId), title, isResearch)
 	br.Ret = 200
 	br.Ret = 200
 	br.Success = true
 	br.Success = true
 	br.Msg = "操作成功"
 	br.Msg = "操作成功"

+ 1 - 1
services/wx_template_msg.go

@@ -816,7 +816,7 @@ func SendWxMsgWithMicroRoadshowAsk(req models.AddVideoCommnetReq, user *models.W
 	sendInfo.Keyword3 = keyword3
 	sendInfo.Keyword3 = keyword3
 	sendInfo.Keyword4 = keyword4
 	sendInfo.Keyword4 = keyword4
 	sendInfo.Remark = remark
 	sendInfo.Remark = remark
-	sendInfo.TemplateId = utils.WxMsgTemplateIdAskMsgXzs
+	sendInfo.TemplateId = utils.WxMsgTemplateIdActivityApplyXzs
 	sendInfo.RedirectUrl = redirectUrl
 	sendInfo.RedirectUrl = redirectUrl
 	sendInfo.RedirectTarget = 3
 	sendInfo.RedirectTarget = 3
 	sendInfo.Resource = strconv.Itoa(req.Id)
 	sendInfo.Resource = strconv.Itoa(req.Id)