xingzai 3 жил өмнө
parent
commit
7e21ce4564
1 өөрчлөгдсөн 5 нэмэгдсэн , 1 устгасан
  1. 5 1
      services/activity.go

+ 5 - 1
services/activity.go

@@ -489,7 +489,11 @@ func SendEmailFileForAskMsgResearch(cont context.Context) (err error) {
 		title := activityInfo.ActivityName + "-活动带问"
 		content := "活动带问详情"
 		fileName := downLoadnFilePath
-		touser = "cxzhang@hzinsights.com;jhwang@hzinsights.com;tshen@hzinsights.com"
+		if utils.WxMsgTemplateIdAskMsgMobile == "" {
+			touser = "cxzhang@hzinsights.com;ywang@hzinsights.com"
+		} else {
+			touser = "cxzhang@hzinsights.com;jhwang@hzinsights.com;tshen@hzinsights.com"
+		}
 		sendResult := utils.SendEmailByHongze(title, content, touser, fileName, title+".xlsx")
 		if sendResult {
 			errFile = models.UPdateActivityMsgToSendFile(v.ActivityId)