Browse Source

参数提示

release_0.0.2
巴林闲侠 3 years ago
parent
commit
7db8194212
  1. 3
      code/VideoAccess-VCMP/api/config.js

3
code/VideoAccess-VCMP/api/config.js

@ -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 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('缺少启动参数,异常退出');
args.showHelp();
process.exit(-1);

Loading…
Cancel
Save