Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Z
zhichan
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
蒋勇
zhichan
Commits
2854206b
Commit
2854206b
authored
Nov 17, 2020
by
王悦
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
process.env.APP_ENV === "prod"
parent
3f0483f2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
8 deletions
+10
-8
center-channel/app/base/utils/dingClient.js
+10
-8
No files found.
center-channel/app/base/utils/dingClient.js
View file @
2854206b
...
...
@@ -6,14 +6,16 @@ class dingClient {
}
//推送峰擎异常提醒
async
gatewayPushError
(
err
)
{
let
c
=
`注意提醒:阿里->推送峰擎异常,老板们加油,加油,加油 !!!
${
JSON
.
stringify
(
err
)}
`
let
t
=
new
Date
().
toLocaleString
()
this
.
execClient
.
execPost
({
"msgtype"
:
"text"
,
"text"
:
{
"content"
:
t
+
c
}
},
this
.
gatewayurl
).
catch
(
alierr
=>
{
console
.
log
(
alierr
)
});
if
(
process
.
env
.
APP_ENV
===
"prod"
)
{
let
c
=
`注意提醒:阿里->推送峰擎异常,老板们加油,加油,加油 !!!
${
JSON
.
stringify
(
err
)}
`
let
t
=
new
Date
().
toLocaleString
()
this
.
execClient
.
execPost
({
"msgtype"
:
"text"
,
"text"
:
{
"content"
:
t
+
c
}
},
this
.
gatewayurl
).
catch
(
alierr
=>
{
console
.
log
(
alierr
)
});
}
}
}
module
.
exports
=
dingClient
;
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