Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
孙龙
/
golang-queue-server
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
91364482
authored
Mar 01, 2024
by
朱继来
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
去掉采购邮件钉钉通知
parent
cff660c5
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
10 deletions
order/sendPurchaseEmail/sendEmail/sendEmail.go
order/sendPurchaseEmail/sendEmail/sendEmail.go
View file @
91364482
...
@@ -2,14 +2,14 @@ package sendEmail
...
@@ -2,14 +2,14 @@ package sendEmail
import
(
import
(
"encoding/json"
"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"
"go-queue-server/util/ding"
"io/ioutil"
"io/ioutil"
"net/http"
"net/http"
_
"strconv"
_
"strconv"
"strings"
"strings"
"github.com/ichunt2019/logger"
)
)
// json 返回值
// json 返回值
...
@@ -36,16 +36,16 @@ func SendPurchaseEmail(data string) (err error) {
...
@@ -36,16 +36,16 @@ func SendPurchaseEmail(data string) (err error) {
err
=
http_post
(
crm_url
,
data
,
header_map
)
err
=
http_post
(
crm_url
,
data
,
header_map
)
// 钉钉通知 默认参数
// 钉钉通知 默认参数
var
mobile
[]
string
=
make
([]
string
,
0
)
//
var mobile []string = make([]string, 0)
var
isAtAll
bool
=
false
//
var isAtAll bool = false
if
err
!=
nil
{
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
())
logger
.
Info
(
err
.
Error
())
return
err
return
err
}
}
ding
.
Send
(
util
.
Configs
.
Ding_msg
.
Webhook
,
"监控告警"
,
"推送采购邮件:"
+
data
,
mobile
,
isAtAll
)
//
ding.Send(util.Configs.Ding_msg.Webhook, "监控告警", "推送采购邮件:" + data, mobile, isAtAll)
return
return
...
@@ -124,5 +124,3 @@ func http_post(url string, data string, header map[string]string) (err error) {
...
@@ -124,5 +124,3 @@ func http_post(url string, data string, header map[string]string) (err error) {
return
return
}
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment