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
1d998642
Commit
1d998642
authored
Jul 03, 2019
by
trace
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
去掉贷超监控, 修改 title
parent
93256434
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
7 deletions
+5
-7
play.js
+5
-7
No files found.
play.js
View file @
1d998642
let
version
=
'1.
2
'
let
version
=
'1.
0
'
let
release
=
`<div><br/>
<br/>1. <br/>
限制排名获取的监控数量, 减少监控总数量, 加快循环时间<br/>
从 Top 表单里获取的 APP 不在累积监控名单, 只监控获取当次的 APP. <br/>
监控数量控制在: (贷超 APP 数) + (OurApp 数) + Top表单(国家 * 类型 * Top获取数量[如获取 Top100, 就是100]) <br/>
单独监控菲律宾<br/>
<div/>
<br/>
<br/>
...
...
@@ -26,7 +24,7 @@ var util = require('util')
var
getPromiss
=
util
.
promisify
(
request
.
get
)
// 地址
let
subApi
=
"https://git.starwin.tech/nongyingchen/AppMonitorSubscriber/raw/
master
/subscriber.json"
let
subApi
=
"https://git.starwin.tech/nongyingchen/AppMonitorSubscriber/raw/
philipines
/subscriber.json"
log
(
`当前奔跑在:
${
username
}
`
)
let
ding
=
'https://oapi.dingtalk.com/robot/send?access_token='
let
debugDingding
=
`
${
ding
}
bf03c69128b771107b8715911b8a76db61a55cbd8b00e1a2c955578c2a3da719`
...
...
@@ -58,7 +56,7 @@ let daichaoNotifyEmail = []
// 外部通知客户
let
outsideNotifier
=
{}
let
crabName
=
`
东南亚现金贷
App监控
${
isTest
()
&&
'(Test)'
||
''
}
`
let
crabName
=
`
菲律宾
App监控
${
isTest
()
&&
'(Test)'
||
''
}
`
let
monitorRegion
=
{
'vn'
:
'越南'
,
'ph'
:
'菲律宾'
,
'id'
:
'印尼'
}
let
monitorType
=
{
'FINANCE'
:
'财务'
}
let
statusFile
=
`
${
process
.
cwd
()}
/status.json`
...
...
@@ -181,7 +179,7 @@ async function startMonitor() {
newDeploy
=
false
}
})
.
then
(
getDaichao
)
// .then(getDaichao) 不需要再监控贷超
.
then
(
getTop100
)
.
then
(()
=>
fs
.
writeFileSync
(
monitorApps
,
JSON
.
stringify
(
monitorNames
)))
// 保存到本地
.
then
(()
=>
{
// 动态修改间隔得值
...
...
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