aaden-cli 1.6.71 → 1.6.73
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +20 -17
- package/modules/firebase.js +19 -16
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -115,22 +115,25 @@ async function deviceEcho(data) {
|
|
|
115
115
|
return
|
|
116
116
|
}
|
|
117
117
|
const {name, adress1, postCode, city, state} = await getNiceRestaurantInfo()
|
|
118
|
-
const waitSecond = parseInt(myDeviceId) % 30 * 1000
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
118
|
+
const waitSecond = (parseInt(myDeviceId) % 30) * 1000
|
|
119
|
+
console.log(waitSecond, '等待时间')
|
|
120
|
+
await new Promise(resolve => setTimeout(() => {
|
|
121
|
+
resolve()
|
|
122
|
+
}, waitSecond))
|
|
123
|
+
|
|
124
|
+
await hillo.jsonPost('https://cloud-v2.aaden.io/deviceLog/create', {
|
|
125
|
+
deviceId: myDeviceId,
|
|
126
|
+
frontendVersion: frontendVersion,
|
|
127
|
+
cliVersion,
|
|
128
|
+
backendVersion: await getCurrentBackendVersion(),
|
|
129
|
+
timestamp: dayjs().valueOf(),
|
|
130
|
+
accessFrom: 'aaden-cli v' + cliVersion,
|
|
131
|
+
diskUsage,
|
|
132
|
+
lastUptime: upTime,
|
|
133
|
+
ngrokOk: ngrokIsNew,
|
|
134
|
+
deviceName: `${name}\n${adress1}\n${postCode} ${city} ${state}`
|
|
135
|
+
})
|
|
136
|
+
console.log('report to remote server complete')
|
|
134
137
|
|
|
135
138
|
|
|
136
139
|
}
|
|
@@ -18500,7 +18503,7 @@ module.exports = JSON.parse('{"name":"axios","version":"0.19.2","description":"P
|
|
|
18500
18503
|
/***/ ((module) => {
|
|
18501
18504
|
|
|
18502
18505
|
"use strict";
|
|
18503
|
-
module.exports = {"i8":"1.6.
|
|
18506
|
+
module.exports = {"i8":"1.6.73"};
|
|
18504
18507
|
|
|
18505
18508
|
/***/ })
|
|
18506
18509
|
|
package/modules/firebase.js
CHANGED
|
@@ -19,22 +19,25 @@ export async function deviceEcho(data) {
|
|
|
19
19
|
return
|
|
20
20
|
}
|
|
21
21
|
const {name, adress1, postCode, city, state} = await getNiceRestaurantInfo()
|
|
22
|
-
const waitSecond = parseInt(myDeviceId) % 30 * 1000
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
22
|
+
const waitSecond = (parseInt(myDeviceId) % 30) * 1000
|
|
23
|
+
console.log(waitSecond, '等待时间')
|
|
24
|
+
await new Promise(resolve => setTimeout(() => {
|
|
25
|
+
resolve()
|
|
26
|
+
}, waitSecond))
|
|
27
|
+
|
|
28
|
+
await hillo.jsonPost('https://cloud-v2.aaden.io/deviceLog/create', {
|
|
29
|
+
deviceId: myDeviceId,
|
|
30
|
+
frontendVersion: frontendVersion,
|
|
31
|
+
cliVersion,
|
|
32
|
+
backendVersion: await getCurrentBackendVersion(),
|
|
33
|
+
timestamp: dayjs().valueOf(),
|
|
34
|
+
accessFrom: 'aaden-cli v' + cliVersion,
|
|
35
|
+
diskUsage,
|
|
36
|
+
lastUptime: upTime,
|
|
37
|
+
ngrokOk: ngrokIsNew,
|
|
38
|
+
deviceName: `${name}\n${adress1}\n${postCode} ${city} ${state}`
|
|
39
|
+
})
|
|
40
|
+
console.log('report to remote server complete')
|
|
38
41
|
|
|
39
42
|
|
|
40
43
|
}
|