| | |
| | | String token = this.getToken(); |
| | | res = (String) requestMethod.invoke(this.uavClient, this.host + url, token, data); |
| | | } catch (IllegalAccessException e) { |
| | | System.out.println("doUavRequest 访问失败" + e.getMessage()); |
| | | log.error("doUavRequest 访问失败" + e.getMessage()); |
| | | } catch (InvocationTargetException e) { |
| | | System.out.println("doUavRequest 执行失败" + e.getMessage()); |
| | | log.error("doUavRequest 执行失败" + e.getMessage()); |
| | | e.printStackTrace(); |
| | | } |
| | | |
| | |
| | | //验证token有效性 |
| | | try { |
| | | String res = uavClient.GET(this.host+"manage/api/v1/devices", token, "{}"); |
| | | System.out.println(res); |
| | | //System.out.println(res); |
| | | } catch (ForestNetworkException fe) { |
| | | if (fe.getStatusCode() == 401) {//token失效,重新登录 |
| | | this.login(); |
| | |
| | | log.debug("登录无人机外部接口"); |
| | | String codedPassword = this.Encrypt(password, salt); |
| | | String body = "{\"username\":\"" + username + "\",\"password\":\"" + codedPassword + "\"}"; |
| | | System.out.println("body:" + body); |
| | | log.debug("body:" + body); |
| | | try { |
| | | //uavClient.GET("logout", null, "{}"); |
| | | String res = uavClient.POST(this.host+"login", null, body); |
| | |
| | | # 主库数据源 |
| | | master: |
| | | driverClassName: org.postgresql.Driver |
| | | url: jdbc:postgresql://112.98.126.2:35432/ry-vue?stringtype=unspecified&TimeZone=Asia/Shanghai |
| | | url: jdbc:postgresql://192.168.1.14:5432/ry-vue?stringtype=unspecified&TimeZone=Asia/Shanghai |
| | | username: postgres |
| | | password: Yykj.2017 |
| | | password: postgres |
| | | # 从库数据源 |
| | | slave: |
| | | # 从数据源开关/默认关闭 |
| | |
| | | merge-sql: true |
| | | wall: |
| | | config: |
| | | multi-statement-allow: true |
| | | multi-statement-allow: true |
| | |
| | | # knife4j增强功能,开启后下面参数才生效 |
| | | enable: true |
| | | #是否为生产模式 项目部属时为true 防止接口暴露 |
| | | production: true |
| | | production: false |
| | | # 配置用户密码 |
| | | basic: |
| | | enable: true |
| | |
| | | sy: info |
| | | # minio配置 |
| | | minio: |
| | | enabled: false |
| | | endpoint: http://192.168.5.229:9001 |
| | | enabled: true |
| | | endpoint: http://192.168.1.14:9001 |
| | | accessKey: admin |
| | | secretKey: xzx12345 |
| | | path: F:/DATA |
| | | path: G:/DATA |
| | | #流媒体转码服务器 |
| | | mediamtx: |
| | | enabled: true |
| | | host: 192.168.5.229 |
| | | host: 192.168.1.14 |
| | | software_decoding: true |
| | | #mqtt |
| | | mqtt: |
| | | host: tcp://192.168.5.229:1883 |
| | | clientId: server229 |
| | | host: tcp://192.168.1.14:1883 |
| | | clientId: server14 |
| | | username: admin |
| | | password: xzx12345 |
| | | topic: minioEvent,apponekey,camera,external,radarWellData |
| | | topic: minioEvent,radar,stealelec,tube,camera,external,accessControl,apponekey,digitization3,radarForceGuide |
| | | timeout: 100 |
| | | keepalive: 60 |
| | | enabled: true |
| | | enabled: true |
| | | #三一车辆开关 |
| | | syCar: |
| | | enabled: true |
| | |
| | | secret: abcdefghijklmnopqrstuvwxyz
|
| | | # 令牌有效期(默认30分钟)
|
| | | expireTime: 30
|
| | | # 是否允许账户多终端同时登录 (true 允许/ false 不允许)
|
| | | soloLogin: true
|
| | | # MyBatis配置
|
| | | #mybatis:
|
| | | # # 搜索指定包别名
|
| | |
| | | max-wait: -1ms
|
| | | # 激活配置文件
|
| | | profiles:
|
| | | active: dev-druid,dev
|
| | | active: prod-druid,prod
|
| | |
|