Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
B
browser-backend
Project
Project
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
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
browser-backend
Commits
26bca654
Commit
26bca654
authored
May 11, 2020
by
jim
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msg
parent
23b3be26
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
BrowserTask.java
...va/com/edgec/browserbackend/browser/task/BrowserTask.java
+1
-1
NotifyUtils.java
...dgec/browserbackend/common/commons/utils/NotifyUtils.java
+1
-1
No files found.
src/main/java/com/edgec/browserbackend/browser/task/BrowserTask.java
View file @
26bca654
...
@@ -193,7 +193,7 @@ public class BrowserTask {
...
@@ -193,7 +193,7 @@ public class BrowserTask {
}
}
}
catch
(
Exception
e
)
{
}
catch
(
Exception
e
)
{
log
.
error
(
e
.
getMessage
(),
e
);
log
.
error
(
e
.
getMessage
(),
e
);
NotifyUtils
.
sendMessage
(
"浏览器后端
又炸了,赶紧看啊"
,
NotifyUtils
.
MsgType
.
WEBHOOK
);
NotifyUtils
.
sendMessage
(
"浏览器后端
queryIpTasks() 又炸了,赶紧看啊"
,
e
,
NotifyUtils
.
MsgType
.
WEBHOOK
);
}
finally
{
}
finally
{
long
end
=
System
.
currentTimeMillis
();
long
end
=
System
.
currentTimeMillis
();
log
.
debug
(
"queryIpTask {} execution time is: "
+
(
end
-
start
)
/
1000
+
"s"
,
ipResource
.
getId
());
log
.
debug
(
"queryIpTask {} execution time is: "
+
(
end
-
start
)
/
1000
+
"s"
,
ipResource
.
getId
());
...
...
src/main/java/com/edgec/browserbackend/common/commons/utils/NotifyUtils.java
View file @
26bca654
...
@@ -23,7 +23,7 @@ public class NotifyUtils {
...
@@ -23,7 +23,7 @@ public class NotifyUtils {
private
static
final
CloseableHttpClient
httpClient
=
HttpClients
.
createDefault
();
private
static
final
CloseableHttpClient
httpClient
=
HttpClients
.
createDefault
();
public
enum
MsgType
{
public
enum
MsgType
{
WEBHOOK
(
"https://qyapi.weixin.qq.com/cgi-bin/webhook/send?key=
6bdea516-5321-45b8-bdf4-c666aa35af7
c"
),
WEBHOOK
(
"https://qyapi.weixin.qq.com/cgi-bin/webhook/send?key=
7876986a-40f2-47a5-8071-f8aef21a996
c"
),
;
;
String
url
;
String
url
;
...
...
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