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
926440ae
Commit
926440ae
authored
Sep 05, 2019
by
trace
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
获取列表 API 改变出错, catch获取列表的错误
parent
7ca89167
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
4 deletions
+8
-4
play.js
+8
-4
No files found.
play.js
View file @
926440ae
let
version
=
'1.3.
1
'
let
version
=
'1.3.
2
'
let
release
=
`<div><br/>
<br/>1. <br/>
fix issue <br/>
fix issue: 原获取排名链接失效<br/>
add: 获取失败使用上次成功获取的数据<br/>
<div/>
<br/>
<br/>
...
...
@@ -437,7 +438,9 @@ async function getTop100() {
})
.
catch
(
err
=>
{
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}`
})
}
}
...
...
@@ -553,7 +556,7 @@ function markError() {
})
emailContent
+=
`</dl>`
emailContent
+=
`</details>`
errorLog
=
[]
//
errorLog = []
return
emailContent
}
...
...
@@ -648,6 +651,7 @@ function genMail() {
if
(
hitOurs
==
0
&&
hitDaichao
==
0
&&
errorLog
.
length
==
0
)
{
log
(
`当轮监控, 没有涉及我们的 APP 或者错误, 就不生成邮件内容`
)
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