|
@@ -8,7 +8,6 @@ import (
|
|
|
"eta/eta_mini_bridge/utils"
|
|
|
"html"
|
|
|
"strconv"
|
|
|
- "time"
|
|
|
)
|
|
|
|
|
|
type WeChatController struct {
|
|
@@ -147,12 +146,10 @@ func (this *WeChatController) SendTemplateMsg() {
|
|
|
}
|
|
|
}
|
|
|
sendData := make(map[string]interface{})
|
|
|
- sendData["first"] = map[string]interface{}{"value": "HI,您持有产品的运行报告新鲜出炉啦!立即查看", "color": "#173177"}
|
|
|
sendData["keyword1"] = map[string]interface{}{"value": report.ClassifyNameSecond, "color": "#173177"}
|
|
|
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"}
|
|
|
- sendData["remark"] = map[string]interface{}{"value": time.Now().Format(utils.FormatDate), "color": "#173177"}
|
|
|
err = services.SendMultiTemplateMsg(sendData, openIds, 1, reportId)
|
|
|
if err != nil {
|
|
|
br.Msg = "发送失败"
|