|
@@ -4,7 +4,6 @@ import (
|
|
|
"encoding/json"
|
|
|
"errors"
|
|
|
"eta/eta_api/models"
|
|
|
- "eta/eta_api/services/alarm_msg"
|
|
|
"eta/eta_api/utils"
|
|
|
"fmt"
|
|
|
"io"
|
|
@@ -43,12 +42,10 @@ 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
|