Commit e028d414 by takeTrace

单独获取登记 APP

parent d72040b4
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 没到时间不会进入监控
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment