Browse Source

测试环境参数

dev
CODE 1 year ago
parent
commit
34c1ad9576
  1. 64
      api/.vscode/launch.json
  2. 4
      api/app/lib/controllers/control/toolLink.js
  3. 2
      api/app/lib/controllers/project/group.js

64
api/.vscode/launch.json

@ -16,22 +16,30 @@
"-p 4600", "-p 4600",
"-f http://localhost:4600", "-f http://localhost:4600",
// //
"-g postgres://postgres:123@10.8.30.32:5432/orational_service", // "-g postgres://postgres:123@10.8.30.32:5432/orational_service",
// "-g postgres://postgres:123@10.8.30.166:5432/POMS_2306", // "-g postgres://postgres:123@10.8.30.166:5432/POMS_2306",
// "-g postgres://postgres:123@10.8.30.32:5432/poms1",
// //
// "-g postgres://FashionAdmin:123456@10.8.30.156:5432/POMS", // "-g postgres://FashionAdmin:123456@10.8.30.156:5432/POMS",
"-g postgres://FashionAdmin:123456@10.8.30.166:5432/POMS",
"-k 10.8.30.72:29092,10.8.30.73:29092,10.8.30.74:29092", "-k 10.8.30.72:29092,10.8.30.73:29092,10.8.30.74:29092",
"-e http://10.8.30.60:9200", "-e http://10.8.30.60:9200",
// "-e http://10.8.30.60:5601", // "-e http://10.8.30.60:5601",
"--iotaProxy http://10.8.30.157:17007", "--iotaProxy http://10.8.30.157:17007",
//
"--redisHost localhost", "--redisHost localhost",
"--redisPort 6379", "--redisPort 6379",
//
// "--redisHost https://redistest.anxinyun.cn",
// "--redisPort 6378",
//
"--apMergeDeVeAnxinProjectId 1,2,3", "--apMergeDeVeAnxinProjectId 1,2,3",
"--axyApiUrl http://127.0.0.1:4100", "--axyApiUrl http://127.0.0.1:4100",
// //
// "--apiEmisUrl http://10.8.30.161:1111", // "--apiEmisUrl http://10.8.30.161:1111",
// "--apiEmisUrl http://10.8.30.161:31111/", // "--apiEmisUrl http://10.8.30.161:31111/",
"--apiEmisUrl http://localhost:14000", "--apiEmisUrl https://pepca-demo.anxinyun.cn/_api",
// "--apiEmisUrl http://localhost:14000",
"--apiVcmpUrl http://localhost:4000", "--apiVcmpUrl http://localhost:4000",
"--apiIotAuth http://localhost:4200", "--apiIotAuth http://localhost:4200",
"--godUrl https://restapi.amap.com/v3", "--godUrl https://restapi.amap.com/v3",
@ -44,8 +52,8 @@
// "--qndmn http://resources.anxinyun.cn", // "--qndmn http://resources.anxinyun.cn",
// "--qndmn http://rhvqdivo5.hn-bkt.clouddn.com", // "--qndmn http://rhvqdivo5.hn-bkt.clouddn.com",
// click // click
// "--clickHouseUrl http://10.8.30.95", "--clickHouseUrl http://10.8.30.95",
// "--clickHousePort 30123", "--clickHousePort 30123",
// click // click
// "--clickHouseUrl http://10.8.30.161", // "--clickHouseUrl http://10.8.30.161",
// "--clickHousePort 30123", // "--clickHousePort 30123",
@ -59,20 +67,20 @@
// //
// //
// click // click
"--clickHouseUrl http://218.3.126.49", // "--clickHouseUrl http://218.3.126.49",
"--clickHousePort 18123", // "--clickHousePort 18123",
"--clickHouseUser default", // "--clickHouseUser default",
"--clickHousePassword Wbo@hi1I", // "--clickHousePassword Wbo@hi1I",
"--clickHouseAnxincloud anxinyun", // "--clickHouseAnxincloud anxinyun",
"--clickHousePepEmis pepca", // "--clickHousePepEmis pepca",
"--clickHouseProjectManage peppm", // "--clickHouseProjectManage peppm",
"--clickHouseVcmp video_access_dev", // "--clickHouseVcmp video_access_dev",
"--clickHouseDataAlarm alarm", // "--clickHouseDataAlarm alarm",
"--clickHouseIot iota", // "--clickHouseIot default",
"--clickHouseCamworkflow camworkflow", // "--clickHouseCamworkflow camworkflow",
"--confirmAlarmAnxinUserId 1", // "--confirmAlarmAnxinUserId 1",
"--vcmpAppId 5048b08d-c449-4d7f-b1ec-f741012aefe8", // "--vcmpAppId 5048b08d-c449-4d7f-b1ec-f741012aefe8",
"--vcmpAppSecret 5ba8c0ab-9fbd-4f07-9817-c48017c3cbad", // "--vcmpAppSecret 5ba8c0ab-9fbd-4f07-9817-c48017c3cbad",
// //
// //
// * 2 // * 2
@ -86,16 +94,16 @@
// "--clickHouseDataAlarm default", // "--clickHouseDataAlarm default",
// "--clickHouseIot iot", // "--clickHouseIot iot",
// //
// "--clickHouseAnxincloud anxinyun", "--clickHouseAnxincloud anxinyun88",
// "--clickHousePepEmis pepca", "--clickHousePepEmis pepca8",
// "--clickHouseProjectManage peppm", "--clickHouseProjectManage peppm8",
// "--clickHouseVcmp video_access_dev", "--clickHouseVcmp video_access_dev",
// "--clickHouseDataAlarm default", "--clickHouseDataAlarm alarm",
// "--clickHouseIot iota", "--clickHouseIot iota",
// "--clickHouseCamworkflow camworkflow", "--clickHouseCamworkflow camworkflow",
// "--confirmAlarmAnxinUserId 1", "--confirmAlarmAnxinUserId 1",
// "--vcmpAppId 5048b08d-c449-4d7f-b1ec-f741012aefe8", "--vcmpAppId 5048b08d-c449-4d7f-b1ec-f741012aefe8",
// "--vcmpAppSecret 5ba8c0ab-9fbd-4f07-9817-c48017c3cbad", "--vcmpAppSecret 5ba8c0ab-9fbd-4f07-9817-c48017c3cbad",
] ]
}, },
{ {

4
api/app/lib/controllers/control/toolLink.js

@ -226,7 +226,6 @@ async function count (ctx) {
let dataAfter = new moment(); //验证后时间 let dataAfter = new moment(); //验证后时间
let dataduration = moment.duration(dataAfter.diff(dataFront))._data.milliseconds let dataduration = moment.duration(dataAfter.diff(dataFront))._data.milliseconds
console.log('数据', dataduration);
let yingyongFront = new moment(); //验证前时间 let yingyongFront = new moment(); //验证前时间
@ -248,7 +247,6 @@ async function count (ctx) {
let yingyongAfter = new moment(); //验证后时间 let yingyongAfter = new moment(); //验证后时间
let yingyongduration = moment.duration(yingyongAfter.diff(yingyongFront))._data.milliseconds let yingyongduration = moment.duration(yingyongAfter.diff(yingyongFront))._data.milliseconds
console.log('应用', yingyongduration);
let videoFront = new moment(); //验证前时间 let videoFront = new moment(); //验证前时间
@ -362,8 +360,6 @@ async function count (ctx) {
let videoAfter = new moment(); //验证后时间 let videoAfter = new moment(); //验证后时间
let videoduration = moment.duration(videoAfter.diff(videoFront))._data.milliseconds let videoduration = moment.duration(videoAfter.diff(videoFront))._data.milliseconds
console.log('视频', videoduration);
let findOptions = { let findOptions = {
where: { where: {

2
api/app/lib/controllers/project/group.js

@ -223,7 +223,7 @@ async function groupStatistic (ctx) {
group by StructureId group by StructureId
` `
).toPromise() : [] ).toPromise() : []
// console.log('',)
let rslt = [] let rslt = []
for (let pg of progectGroupList) { for (let pg of progectGroupList) {
let strucCount = 0 let strucCount = 0

Loading…
Cancel
Save