|
@@ -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 = "操作成功"
|