|
@ -39,7 +39,8 @@ const GOD_URL = process.env.GOD_URL || flags.godUrl || 'https://restapi.amap.com |
|
|
const GOD_KEY = process.env.GOD_KEY || flags.godKey; |
|
|
const GOD_KEY = process.env.GOD_KEY || flags.godKey; |
|
|
const YINGSHI_URL = process.env.YINGSHI_URL || flags.yingshiUrl || 'https://open.ys7.com/api'; |
|
|
const YINGSHI_URL = process.env.YINGSHI_URL || flags.yingshiUrl || 'https://open.ys7.com/api'; |
|
|
|
|
|
|
|
|
if (!IOT_VIDEO_ACCESS_DB || !IOTA_REDIS_SERVER_HOST || !IOTA_REDIS_SERVER_PORT || !GOD_KEY || !MQTT_VIDEO_SERVER) { |
|
|
if (!IOT_VIDEO_ACCESS_DB || !IOTA_REDIS_SERVER_HOST || !IOTA_REDIS_SERVER_PORT || !GOD_KEY || !MQTT_VIDEO_SERVER || |
|
|
|
|
|
!AXY_API_URL || !IOT_VIDEO_SERVER_URL || !IOT_AUTH_API) { |
|
|
console.log('缺少启动参数,异常退出'); |
|
|
console.log('缺少启动参数,异常退出'); |
|
|
args.showHelp(); |
|
|
args.showHelp(); |
|
|
process.exit(-1); |
|
|
process.exit(-1); |
|
|