|
@@ -6,6 +6,7 @@ import (
|
|
|
"eta/eta_mini_bridge/services"
|
|
|
"eta/eta_mini_bridge/services/alarm_msg"
|
|
|
"eta/eta_mini_bridge/utils"
|
|
|
+ "fmt"
|
|
|
"html"
|
|
|
"strconv"
|
|
|
)
|
|
@@ -164,6 +165,11 @@ func (this *WeChatController) SendTemplateMsg() {
|
|
|
sendData["keyword2"] = map[string]interface{}{"value": report.Title, "color": "#173177"}
|
|
|
sendData["keyword3"] = map[string]interface{}{"value": report.PublishTime, "color": "#173177"}
|
|
|
sendData["keyword4"] = map[string]interface{}{"value": report.Abstract, "color": "#173177"}
|
|
|
+ // 推送模板消息
|
|
|
+ go func(sendData map[string]interface{}, items []*services.OpenIdList, sendType, reportId int) {
|
|
|
+ fmt.Println("推送模板消息:", reportId)
|
|
|
+ _ = services.SendMultiTemplateMsg(sendData, openIds, 1, reportId)
|
|
|
+ }(sendData, openIds, 1, reportId)
|
|
|
err = services.SendMultiTemplateMsg(sendData, openIds, 1, reportId)
|
|
|
if err != nil {
|
|
|
br.Msg = "发送失败"
|