| | |
| | | |
| | | @PostConstruct |
| | | public int initHkConfig(){ |
| | | if(StringUtils.isBlank( ArtemisConfig.host )){ |
| | | ArtemisConfig.host = systemDictDataBiz.queryByCode(Constants.HK_PARAM, Constants.HK_HOST).getCode(); |
| | | ArtemisConfig.appKey = systemDictDataBiz.queryByCode(Constants.HK_PARAM, Constants.HK_APPKEY).getCode(); |
| | | ArtemisConfig.appSecret = systemDictDataBiz.queryByCode(Constants.HK_PARAM, Constants.HK_APPSECRET).getCode(); |
| | | HKConstants.https = systemDictDataBiz.queryByCode(Constants.HK_PARAM, Constants.HK_HTTPS).getCode(); |
| | | } |
| | | HKTools.interfaceLogService=interfaceLogService; |
| | | //获取根组织编码 |
| | | getRootOrgCode(); |
| | | //开始订阅门禁事件、访客事件、和停车场事件 |
| | |
| | | HKService.eventSub(param);//停车场事件 |
| | | |
| | | param.setEventDest(path+"/visit"); |
| | | param.setEventTypes(new Integer[]{HKConstants.EventTypes.VISIT_SIGN_OUT.getKey() |
| | | param.setEventTypes(new Integer[]{HKConstants.EventTypes.VISIT_SIGN_IN.getKey() |
| | | ,HKConstants.EventTypes.VISIT_SIGN_OUT.getKey()}); |
| | | HKService.cancelEventSub(param);//先取消 |
| | | HKService.eventSub(param);//访客事件 |
| | |
| | | ,HKConstants.EventTypes.PARK_LINE_OUT.getKey() |
| | | ,HKConstants.EventTypes.PARK_PASS_IN.getKey() |
| | | ,HKConstants.EventTypes.PARK_PASS_OUT.getKey() |
| | | ,HKConstants.EventTypes.VISIT_SIGN_IN.getKey() |
| | | ,HKConstants.EventTypes.VISIT_SIGN_OUT.getKey(), |
| | | HKConstants.EventTypes.DOOR_FACE_AUTH_SUCCESS.getKey()}); |
| | | String path =systemDictDataBiz.queryByCode(Constants.HK_PARAM, Constants.HK_PUSH_URL).getCode(); |