|
|
@ -102,6 +102,7 @@ module.exports = function (app, opts) { |
|
|
|
}, |
|
|
|
async () => { |
|
|
|
try { |
|
|
|
const startTime = moment() |
|
|
|
const { models } = app.fs.dc |
|
|
|
const { token4yingshi, getYingshiPlayUrl } = app.fs.utils |
|
|
|
const secretRes = await models.SecretYingshi.findAll() |
|
|
@ -137,6 +138,7 @@ module.exports = function (app, opts) { |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
console.info(`萤石设备 ${deviceList.length} 播放地址更新查询用时 ${moment().diff(startTime, 'seconds')} s`) |
|
|
|
} catch (error) { |
|
|
|
app.fs.logger.error(`sechedule: freshYingshiPlayUrl, error: ${error}`); |
|
|
|
} |
|
|
|