|
@@ -42,10 +42,12 @@ func HttpGet(url string) (body []byte, err error) {
|
|
|
|
|
|
func DwSendTemplatedMsg(reportId int) error {
|
|
|
url := fmt.Sprintf("%swechat/send_template_msg?ReportId=%d", utils.ETAMiniBridgeUrl, reportId)
|
|
|
+ alarm_msg.SendAlarmMsg(fmt.Sprintf("eta_mini_bridge url:%s", url), 1)
|
|
|
body, err := HttpGet(url)
|
|
|
if err != nil {
|
|
|
return err
|
|
|
}
|
|
|
+ alarm_msg.SendAlarmMsg(string(body), 1)
|
|
|
result := new(models.BaseResponse)
|
|
|
if err := json.Unmarshal(body, &result); err != nil {
|
|
|
return err
|