|
|
@ -72,6 +72,7 @@ try { |
|
|
|
let beloneSecretId = null |
|
|
|
let serialUnlegal = false |
|
|
|
for (let s of secretRes) { |
|
|
|
let start = (new Date()).getTime(); |
|
|
|
console.log(`当前查询账号key ${s.key}`); |
|
|
|
if (!s.newToken) { |
|
|
|
const tokenRes = await request.post(`${yingshiHost}lapp/token/get`).query({ |
|
|
@ -89,6 +90,10 @@ try { |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
while (((new Date()).getTime() - start) < 3000) {//限制频率
|
|
|
|
continue; |
|
|
|
} |
|
|
|
|
|
|
|
// 检测设备所属
|
|
|
|
const cameraState = await request.post(`${yingshiHost}lapp/device/info`).query({ |
|
|
|
accessToken: s.newToken, |
|
|
|