|
@@ -395,7 +395,7 @@ func (this *MicroRoadShowController) CommentAdd() {
|
|
|
Content: req.Content,
|
|
|
Title: req.Title,
|
|
|
}
|
|
|
- var resourceId int
|
|
|
+ //var resourceId int
|
|
|
if sourceType == 1 {
|
|
|
activityVoiceInfo, _ := models.GetCygxActivityVoiceById(req.Id)
|
|
|
if activityVoiceInfo == nil {
|
|
@@ -406,7 +406,7 @@ func (this *MicroRoadShowController) CommentAdd() {
|
|
|
item.ActivityId = activityVoiceInfo.ActivityId
|
|
|
item.Title = activityVoiceInfo.VoiceName
|
|
|
item.ActivityVoiceId = activityVoiceInfo.ActivityVoiceId
|
|
|
- resourceId = activityVoiceInfo.ActivityId
|
|
|
+ //resourceId = activityVoiceInfo.ActivityId
|
|
|
} else if sourceType == 2 {
|
|
|
activityInfo, _ := models.GetCygxActivityVideoById(req.Id)
|
|
|
if activityInfo == nil {
|
|
@@ -417,7 +417,7 @@ func (this *MicroRoadShowController) CommentAdd() {
|
|
|
item.Title = activityInfo.Title
|
|
|
item.VideoId = activityInfo.Id
|
|
|
item.ActivityId = activityInfo.ActivityId
|
|
|
- resourceId = activityInfo.ActivityId
|
|
|
+ //resourceId = activityInfo.ActivityId
|
|
|
} else if sourceType == 3 {
|
|
|
item.VideoId = req.Id
|
|
|
microVideo, e := models.GetMicroRoadshowVideoById(req.Id)
|
|
@@ -428,7 +428,7 @@ func (this *MicroRoadShowController) CommentAdd() {
|
|
|
}
|
|
|
item.Title = microVideo.VideoName
|
|
|
item.IndustryId = microVideo.IndustryId
|
|
|
- resourceId = microVideo.IndustryId
|
|
|
+ //resourceId = microVideo.IndustryId
|
|
|
}
|
|
|
var isResearch bool // 是否属于研选
|
|
|
if sourceType == 2 || sourceType == 3 {
|
|
@@ -448,7 +448,7 @@ func (this *MicroRoadShowController) CommentAdd() {
|
|
|
br.ErrMsg = "提交留言失败,Err:" + err.Error()
|
|
|
return
|
|
|
}
|
|
|
- services.SendWxMsgWithMicroRoadshowAsk(req, user, resourceId, int(msgId), title, isResearch)
|
|
|
+ services.SendWxMsgWithMicroRoadshowAsk(req, user, sourceType, int(msgId), title, isResearch)
|
|
|
br.Ret = 200
|
|
|
br.Success = true
|
|
|
br.Msg = "操作成功"
|