|
@@ -150,8 +150,10 @@ func (this *WeChatController) SendTemplateMsg() {
|
|
|
sendMap["keyword2"] = map[string]interface{}{"value": report.ContentSub, "color": "#173177"}
|
|
|
sendMap["keyword3"] = map[string]interface{}{"value": report.PublishTime, "color": "#173177"}
|
|
|
sendMap["keyword4"] = map[string]interface{}{"value": report.Abstract, "color": "#173177"}
|
|
|
+ var WxAppId = `wxb059c872d79b9967`
|
|
|
+ // var WxAppSecret = `1737c73e9f69a21de1a345b8f0800258`
|
|
|
sendMap["miniprogram"] = map[string]string{
|
|
|
- "appid": utils.WX_MINI_APPID,
|
|
|
+ "appid": WxAppId,
|
|
|
"pagepath": fmt.Sprintf("pages-report/reportDetail/index?id=%d", report.Id),
|
|
|
}
|
|
|
err = services.SendMultiTemplateMsg(sendMap, openIds, 1)
|