Browse Source

feat:解决冲突出现错误,误删代码

dev
zhaobing’ 1 year ago
parent
commit
004cbbf8bc
  1. 40
      api/config.js

40
api/config.js

@ -135,28 +135,24 @@ const ES_PLATFORM_NAME = process.env.ES_PLATFORM_NAME || flags.esPlatformName
|| 'anxinyun'; || 'anxinyun';
const ANXINCLOUD_ES_NODES_REST = process.env.ANXINCLOUD_ES_NODES_REST || flags.es; const ANXINCLOUD_ES_NODES_REST = process.env.ANXINCLOUD_ES_NODES_REST || flags.es;
// //business_key // //business_key
// const BUSINESS_KEY=process.env.BUSINESS_KEY||['834','840'] // const BUSINESS_KEY=process.env.BUSINESS_KEY||['160','161']
if (
// !BUSINESS_KEY|| const requireParams = {
!FS_CAMUNDA_HOST || !FS_CAMUNDA_ROOT || FS_CAMUNDA_HOST, FS_CAMUNDA_ROOT,
!POMS_DB POMS_DB,
|| !IOTA_REDIS_SERVER_HOST || !IOTA_REDIS_SERVER_PORT IOTA_REDIS_SERVER_HOST, IOTA_REDIS_SERVER_PORT,
|| !ANXINCLOUD_KAFKA_BROKERS ANXINCLOUD_KAFKA_BROKERS,
|| !GOD_KEY GOD_KEY,
|| !API_ANXINYUN_URL API_ANXINYUN_URL,
|| !API_EMIS_URL API_EMIS_URL,
|| !API_VCMP_URL API_VCMP_URL,
|| !API_IOT_AUTH API_IOT_AUTH,
|| !QINIU_DOMAIN_QNDMN_RESOURCE || !QINIU_BUCKET_RESOURCE || !QINIU_AK || !QINIU_SK QINIU_DOMAIN_QNDMN_RESOURCE, QINIU_BUCKET_RESOURCE, QINIU_AK, QINIU_SK,
|| !CLICKHOUST_URL || !CLICKHOUST_PORT CLICKHOUST_URL, CLICKHOUST_PORT,
|| !CLICKHOUST_ANXINCLOUD || !CLICKHOUST_PEP_EMIS || !CLICKHOUST_PROJECT_MANAGE || !CLICKHOUST_VCMP || !CLICKHOUST_DATA_ALARM || !CLICKHOUST_IOT CLICKHOUST_ANXINCLOUD, CLICKHOUST_PEP_EMIS, CLICKHOUST_PROJECT_MANAGE, CLICKHOUST_VCMP, CLICKHOUST_DATA_ALARM, CLICKHOUST_IOT,
// || !CLICKHOUST_CAM_WORKFLOW // CLICKHOUST_CAM_WORKFLOW,
|| !CONFIRM_ALARM_ANXIN_USER_ID CONFIRM_ALARM_ANXIN_USER_ID,
|| !VCMP_APP_ID || !VCMP_APP_SECRET VCMP_APP_ID, VCMP_APP_SECRET,
) {
console.log('缺少启动参数,异常退出');
args.showHelp();
process.exit(-1);
} }
Object.keys(requireParams).forEach(key => { Object.keys(requireParams).forEach(key => {

Loading…
Cancel
Save