Commit 91364482 by 朱继来

去掉采购邮件钉钉通知

parent cff660c5
Showing with 8 additions and 10 deletions
......@@ -2,14 +2,14 @@ package sendEmail
import (
"encoding/json"
"github.com/ichunt2019/logger"
_"go-queue-server/dal/order/OrderActionLog"
_ "go-queue-server/dal/order/OrderActionLog"
"go-queue-server/util"
"go-queue-server/util/ding"
"io/ioutil"
"net/http"
_"strconv"
_ "strconv"
"strings"
"github.com/ichunt2019/logger"
)
// json 返回值
......@@ -36,16 +36,16 @@ func SendPurchaseEmail(data string) (err error) {
err = http_post(crm_url, data, header_map)
// 钉钉通知 默认参数
var mobile []string = make([]string, 0)
var isAtAll bool = false
// var mobile []string = make([]string, 0)
// var isAtAll bool = false
if err != nil {
ding.Send(util.Configs.Ding_msg.Webhook,"监控告警", "邮件接口请求失败,原因:" + err.Error(), mobile, isAtAll)
// ding.Send(util.Configs.Ding_msg.Webhook,"监控告警", "邮件接口请求失败,原因:" + err.Error(), mobile, isAtAll)
logger.Info(err.Error())
return err
}
ding.Send(util.Configs.Ding_msg.Webhook, "监控告警", "推送采购邮件:" + data, mobile, isAtAll)
// ding.Send(util.Configs.Ding_msg.Webhook, "监控告警", "推送采购邮件:" + data, mobile, isAtAll)
return
......@@ -124,5 +124,3 @@ func http_post(url string, data string, header map[string]string) (err error) {
return
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment