xingzai hai 1 ano
pai
achega
cb37ac9100
Modificáronse 2 ficheiros con 5 adicións e 5 borrados
  1. 1 1
      controllers/micro_roadshow.go
  2. 4 4
      services/wx_template_msg.go

+ 1 - 1
controllers/micro_roadshow.go

@@ -403,11 +403,11 @@ func (this *MicroRoadShowController) CommentAdd() {
 			br.ErrMsg = "活动ID错误,不存在activityId:" + strconv.Itoa(req.Id)
 			return
 		}
-		title = detail.ActivityName
 		if strings.Contains(detail.ChartPermissionName, utils.CHART_PERMISSION_NAME_YANXUAN) {
 			isResearch = true
 		}
 	}
+
 	msgId, err := models.AddArticleComment(&item)
 	if err != nil {
 		br.Msg = "提交失败"

+ 4 - 4
services/wx_template_msg.go

@@ -764,17 +764,17 @@ func SendWxMsgWithMicroRoadshowAsk(req models.AddVideoCommnetReq, user *models.W
 	var keyword3 string
 	var keyword4 string
 	var remark string
+	var mobile string
 	first = req.Title + "有新的留言,请及时处理"
 	keyword1 = user.CompanyName + "——" + user.RealName + "(" + companyItem.SellerName + ")"
 	keyword3 = time.Now().Format(utils.FormatDateTime)
 	keyword2 = title
 	keyword4 = req.Content
-	mobile := companyItem.Mobile
-	mobile = companyItem.Mobile + "," + utils.WxMsgTemplateIdAskMsgMobilePublic
 	if isResearch {
-
+		//研选报告添加汪洋
+		mobile = companyItem.Mobile + "," + utils.WxMsgTemplateIdAskMsgMobilePublic + "," + utils.ActSendMsgMobile
 	} else {
-
+		mobile = companyItem.Mobile + "," + utils.WxMsgTemplateIdAskMsgMobilePublic
 	}
 	openIdList, e := models.GetWxOpenIdByMobileList(mobile)
 	if e != nil {