瀏覽代碼

Merge branch 'hotfix/bug8066_road_send_msg' into debug

xyxie 2 月之前
父節點
當前提交
e6fd0ac8ba
共有 2 個文件被更改,包括 12 次插入7 次删除
  1. 3 4
      services/calendar_researcher_question.go
  2. 9 3
      utils/config.go

+ 3 - 4
services/calendar_researcher_question.go

@@ -20,15 +20,14 @@ func SendCalendarResearcherQuestionTips(cont context.Context) (err error) {
 		return
 	}
 
-	var redirectUrl string
-
-	redirectUrl = `/pages-approve/activity/detail?RsCalendarResearcherId=%s&RsCalendarId=%s`
 	for _, v := range list {
+		redirectUrl := `/pages-approve/activity/detail?RsCalendarResearcherId=`
 		var openIdArr []string
 		openIdArr = append(openIdArr, v.OpenId)
 
 		keyword1 := v.CompanyName + "路演已结束,请及时填写客户回答"
-		redirectUrl = fmt.Sprintf(redirectUrl, strconv.Itoa(v.RsCalendarResearcherId), strconv.Itoa(v.RsCalendarId))
+		//redirectUrl = fmt.Sprintf(redirectUrl, strconv.Itoa(v.RsCalendarResearcherId), strconv.Itoa(v.RsCalendarId))
+		redirectUrl = redirectUrl + strconv.Itoa(v.RsCalendarResearcherId) + "&RsCalendarId=" + strconv.Itoa(v.RsCalendarId)
 		sendInfo := new(SendWxTemplate)
 		sendInfo.WxAppId = utils.AdminWxAppId
 		sendInfo.Keyword1 = keyword1

+ 9 - 3
utils/config.go

@@ -172,9 +172,7 @@ ZwIDAQAB
 
 	WxYbAppId = "wxb059c872d79b9967" //弘则研报小程序
 
-	//内部员工公众号(弘则部门)
-	AdminWxAppId = "wx1392111da5426e9e"
-	AdminWxAppSecret = "30eceb7cf29bf2f046031155ab55d7b4"
+	
 
 	if RunMode == "release" {
 		CompanyId = 16
@@ -198,6 +196,10 @@ ZwIDAQAB
 		SendWxTemplateMsgUrl = "http://127.0.0.1:8086/v1/wechat/send_template_msg"
 		YbCommonTemplateId = "dYg6iHooRq74PyCXmw_Ns7qdJZmbtLoKS2p2FKeaXl0"
 		WxMsgTemplateIdWithYbCommunityQuestion = "rciDm9ThigRBGi1SZ4TFd74XA4aoAxSz_ugdv_tZ450" // 研报小程序->问答社区回复通知
+		
+		//内部员工公众号(弘则部门)
+		AdminWxAppId = "wx1392111da5426e9e"
+		AdminWxAppSecret = "30eceb7cf29bf2f046031155ab55d7b4"
 	} else {
 		CompanyId = 16
 		RealName = "超级管理员"
@@ -220,6 +222,10 @@ ZwIDAQAB
 		SendWxTemplateMsgUrl = "http://127.0.0.1:8086/v1/wechat/send_template_msg"
 		YbCommonTemplateId = "CB7bOl7f3viMG4s1uhRo7WM0Jbx3WvodKuIZ8A_z8fM"
 		WxMsgTemplateIdWithYbCommunityQuestion = "rciDm9ThigRBGi1SZ4TFd74XA4aoAxSz_ugdv_tZ450" // 研报小程序->问答社区回复通知
+
+		//测试内部员工公众号(弘则科技)
+    	AdminWxAppId = "wxe0d0a4d892da28a3"
+    	AdminWxAppSecret = "b88ac96aef1852fa0b8902c321ed4bf8"
 	}
 
 	// 微信模版消息