Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
AppMonitorSubscriber
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
Nongyingchen
AppMonitorSubscriber
Commits
c9139633
Commit
c9139633
authored
Sep 05, 2019
by
trace
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
catch 获取 google 列表错误
parent
e028d414
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
6 deletions
+8
-6
play.js
+8
-6
No files found.
play.js
View file @
c9139633
let
version
=
'1.3'
let
version
=
'1.3
.2
'
let
release
=
`<div><br/>
let
release
=
`<div><br/>
<br/>1. <br/>
<br/>1. <br/>
添加"上", "下", 单独搜索客户 id 加上上下标识, 如: "上2002"<br/>
fix issue: 原获取排名链接失效<br/>
<br/>2. <br/>
add: 获取失败使用上次成功获取的数据<br/>
添加在线时长统计. 详见 "在线/下线 情况"<br/>
<div/>
<div/>
<br/>
<br/>
<br/>
<br/>
...
@@ -431,7 +430,9 @@ async function getTop100() {
...
@@ -431,7 +430,9 @@ async function getTop100() {
})
})
.
catch
(
err
=>
{
.
catch
(
err
=>
{
log
(
`获取排名<
${
monitorRegion
[
region
]}
> 错误:
${
err
.
message
}
`
,
true
)
log
(
`获取排名<
${
monitorRegion
[
region
]}
> 错误:
${
err
.
message
}
`
,
true
)
throw
err
errorLog
.
push
(
`
${
gplay
.
category
[
type
]}
获取排名<
${
monitorRegion
[
region
]}
> 错误:
${
err
.
message
}
`
)
// 获取排名不到直接不管, 使用上次成功获取的数据
// throw `${gplay.category[type]}获取排名<${monitorRegion[region]}> 错误: ${err.message}`
})
})
}
}
}
}
...
@@ -547,7 +548,7 @@ function markError() {
...
@@ -547,7 +548,7 @@ function markError() {
})
})
emailContent
+=
`</dl>`
emailContent
+=
`</dl>`
emailContent
+=
`</details>`
emailContent
+=
`</details>`
errorLog
=
[]
//
errorLog = []
return
emailContent
return
emailContent
}
}
...
@@ -642,6 +643,7 @@ function genMail() {
...
@@ -642,6 +643,7 @@ function genMail() {
if
(
hitOurs
==
0
if
(
hitOurs
==
0
&&
hitDaichao
==
0
&&
hitDaichao
==
0
&&
errorLog
.
length
==
0
)
{
&&
errorLog
.
length
==
0
)
{
log
(
`当轮监控, 没有涉及我们的 APP 或者错误, 就不生成邮件内容`
)
return
null
return
null
}
}
...
...
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