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
e028d414
Commit
e028d414
authored
Aug 21, 2019
by
takeTrace
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
单独获取登记 APP
parent
d72040b4
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
10 deletions
+7
-10
play.js
+7
-10
No files found.
play.js
View file @
e028d414
let
version
=
'1.3
.1
'
let
version
=
'1.3'
let
release
=
`<div><br/>
let
release
=
`<div><br/>
<br/>1. <br/>
<br/>1. <br/>
fix issue <br/>
添加"上", "下", 单独搜索客户 id 加上上下标识, 如: "上2002"<br/>
<br/>2. <br/>
添加在线时长统计. 详见 "在线/下线 情况"<br/>
<div/>
<div/>
<br/>
<br/>
<br/>
<br/>
...
@@ -56,7 +58,7 @@ let daichaoNotifyEmail = []
...
@@ -56,7 +58,7 @@ let daichaoNotifyEmail = []
// 外部通知客户
// 外部通知客户
let
outsideNotifier
=
{}
let
outsideNotifier
=
{}
let
crabName
=
`
东南亚现金贷
App监控
${
isTest
()
&&
'(Test)'
||
''
}
`
let
crabName
=
`
菲律宾
App监控
${
isTest
()
&&
'(Test)'
||
''
}
`
let
monitorRegion
=
{
'vn'
:
'越南'
,
'ph'
:
'菲律宾'
,
'id'
:
'印尼'
}
let
monitorRegion
=
{
'vn'
:
'越南'
,
'ph'
:
'菲律宾'
,
'id'
:
'印尼'
}
let
monitorType
=
{
'FINANCE'
:
'财务'
}
let
monitorType
=
{
'FINANCE'
:
'财务'
}
let
statusFile
=
`
${
process
.
cwd
()}
/status.json`
let
statusFile
=
`
${
process
.
cwd
()}
/status.json`
...
@@ -100,12 +102,7 @@ let isTimeToAppendOurApp = (apps) => {
...
@@ -100,12 +102,7 @@ let isTimeToAppendOurApp = (apps) => {
let
allNames
=
names
=>
{
let
allNames
=
names
=>
{
let
an
=
[]
let
an
=
[]
Object
.
keys
(
names
).
forEach
(
key
=>
{
Object
.
keys
(
names
).
forEach
(
key
=>
{
if
(
key
==
"ourApps"
)
{
// 返回需要监控的自有 app
an
=
[...
an
,
...
isTimeToAppendOurApp
(
names
[
key
])]
}
else
{
an
=
[...
an
,
...
names
[
key
]]
an
=
[...
an
,
...
names
[
key
]]
}
})
})
return
Array
.
from
(
new
Set
(
an
))
return
Array
.
from
(
new
Set
(
an
))
}
}
...
@@ -176,8 +173,8 @@ async function startMonitor() {
...
@@ -176,8 +173,8 @@ async function startMonitor() {
newDeploy
=
false
newDeploy
=
false
}
}
})
})
//
.then(getDaichao)
//
.then(getDaichao) 不需要再监控贷超
//.then(getTop100)
//
.then(getTop100)
.
then
(()
=>
fs
.
writeFileSync
(
monitorApps
,
JSON
.
stringify
(
monitorNames
)))
// 保存到本地
.
then
(()
=>
fs
.
writeFileSync
(
monitorApps
,
JSON
.
stringify
(
monitorNames
)))
// 保存到本地
.
then
(()
=>
{
// 动态修改间隔得值
.
then
(()
=>
{
// 动态修改间隔得值
// 自有 app 没到时间不会进入监控
// 自有 app 没到时间不会进入监控
...
...
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