Commit 3571ca272b5c4d0b9df0d3e2c99f0384ba203797
Merge branch 'wvp-28181-2.0' into main-dev
# Conflicts: # web_src/config/index.js
Showing
7 changed files
with
59 additions
and
16 deletions
sql/2.6.8升级2.6.9.sql
| ... | ... | @@ -455,6 +455,23 @@ rename table stream_push to wvp_stream_push; |
| 455 | 455 | rename table user to wvp_user; |
| 456 | 456 | rename table user_role to wvp_user_role; |
| 457 | 457 | |
| 458 | +alter table wvp_device add column broadcast_push_after_ack bool default false; | |
| 459 | +alter table wvp_device_channel add column custom_name varchar(255) null ; | |
| 460 | +alter table wvp_device_channel add column custom_longitude double null ; | |
| 461 | +alter table wvp_device_channel add column custom_latitude double null ; | |
| 462 | +alter table wvp_device_channel add column custom_ptz_type int null ; | |
| 463 | + | |
| 464 | +create table wvp_resources_tree ( | |
| 465 | + id serial primary key , | |
| 466 | + is_catalog bool default true, | |
| 467 | + device_channel_id integer , | |
| 468 | + gb_stream_id integer, | |
| 469 | + name character varying(255), | |
| 470 | + parentId integer, | |
| 471 | + path character varying(255) | |
| 472 | +); | |
| 473 | + | |
| 474 | + | |
| 458 | 475 | |
| 459 | 476 | |
| 460 | 477 | ... | ... |
sql/初始化.sql
| ... | ... | @@ -32,6 +32,7 @@ create table wvp_device ( |
| 32 | 32 | as_message_channel bool default false, |
| 33 | 33 | keepalive_interval_time integer, |
| 34 | 34 | switch_primary_sub_stream bool default false, |
| 35 | + broadcast_push_after_ack bool default false, | |
| 35 | 36 | constraint uk_device_device unique (device_id) |
| 36 | 37 | ); |
| 37 | 38 | |
| ... | ... | @@ -53,6 +54,7 @@ create table wvp_device_channel ( |
| 53 | 54 | id serial primary key , |
| 54 | 55 | channel_id character varying(50) not null, |
| 55 | 56 | name character varying(255), |
| 57 | + custom_name character varying(255), | |
| 56 | 58 | manufacture character varying(50), |
| 57 | 59 | model character varying(50), |
| 58 | 60 | owner character varying(50), |
| ... | ... | @@ -71,9 +73,12 @@ create table wvp_device_channel ( |
| 71 | 73 | port integer, |
| 72 | 74 | password character varying(255), |
| 73 | 75 | ptz_type integer, |
| 76 | + custom_ptz_type integer, | |
| 74 | 77 | status bool default false, |
| 75 | 78 | longitude double precision, |
| 79 | + custom_longitude double precision, | |
| 76 | 80 | latitude double precision, |
| 81 | + custom_latitude double precision, | |
| 77 | 82 | stream_id character varying(50), |
| 78 | 83 | device_id character varying(50) not null, |
| 79 | 84 | parental character varying(50), |
| ... | ... | @@ -278,6 +283,16 @@ create table wvp_user_role ( |
| 278 | 283 | create_time character varying(50), |
| 279 | 284 | update_time character varying(50) |
| 280 | 285 | ); |
| 286 | +create table wvp_resources_tree ( | |
| 287 | + id serial primary key , | |
| 288 | + is_catalog bool default true, | |
| 289 | + device_channel_id integer , | |
| 290 | + gb_stream_id integer, | |
| 291 | + name character varying(255), | |
| 292 | + parentId integer, | |
| 293 | + path character varying(255) | |
| 294 | +); | |
| 295 | + | |
| 281 | 296 | |
| 282 | 297 | /*初始数据*/ |
| 283 | 298 | INSERT INTO wvp_user VALUES (1, 'admin','21232f297a57a5a743894a0e4a801fc3',1,'2021-04-13 14:14:57','2021-04-13 14:14:57','3e80d1762a324d5b0ff636e0bd16f1e3'); | ... | ... |
src/main/java/com/genersoft/iot/vmp/media/zlm/ZLMRESTfulUtils.java
| ... | ... | @@ -195,10 +195,10 @@ public class ZLMRESTfulUtils { |
| 195 | 195 | } else { |
| 196 | 196 | logger.error(String.format("[ %s ]请求失败: %s %s", url, response.code(), response.message())); |
| 197 | 197 | } |
| 198 | - Objects.requireNonNull(response.body()).close(); | |
| 199 | 198 | } else { |
| 200 | 199 | logger.error(String.format("[ %s ]请求失败: %s %s", url, response.code(), response.message())); |
| 201 | 200 | } |
| 201 | + Objects.requireNonNull(response.body()).close(); | |
| 202 | 202 | } catch (ConnectException e) { |
| 203 | 203 | logger.error(String.format("连接ZLM失败: %s, %s", e.getCause().getMessage(), e.getMessage())); |
| 204 | 204 | logger.info("请检查media配置并确认ZLM已启动..."); | ... | ... |
src/main/resources/all-application.yml
src/main/resources/application-dev.yml
web_src/src/App.vue
| ... | ... | @@ -11,6 +11,7 @@ export default { |
| 11 | 11 | data(){ |
| 12 | 12 | return { |
| 13 | 13 | isLogin: false, |
| 14 | + excludeLoginCheck: ["/play/wasm", "/play/rtc"], | |
| 14 | 15 | userInfo: { //保存用户信息 |
| 15 | 16 | nick: null, |
| 16 | 17 | ulevel: null, |
| ... | ... | @@ -21,27 +22,29 @@ export default { |
| 21 | 22 | }, |
| 22 | 23 | created() { |
| 23 | 24 | if (userService.getToken() == null){ |
| 25 | + console.log(22222) | |
| 26 | + console.log(this.$route.path) | |
| 27 | + try { | |
| 28 | + if (this.excludeLoginCheck && this.excludeLoginCheck.length > 0) { | |
| 29 | + for (let i = 0; i < this.excludeLoginCheck.length; i++) { | |
| 30 | + if (this.$route.path.startsWith(this.excludeLoginCheck[i])){ | |
| 31 | + return; | |
| 32 | + } | |
| 33 | + } | |
| 34 | + } | |
| 35 | + }catch (e) { | |
| 36 | + console.error(e) | |
| 37 | + } | |
| 24 | 38 | //如果没有登录状态则跳转到登录页 |
| 25 | 39 | this.$router.push('/login'); |
| 26 | 40 | } |
| 27 | 41 | }, |
| 28 | - //监听路由检查登录 | |
| 29 | - watch:{ | |
| 30 | - "$route" : 'checkLogin' | |
| 31 | - }, | |
| 42 | + | |
| 32 | 43 | mounted(){ |
| 33 | 44 | //组件开始挂载时获取用户信息 |
| 34 | 45 | // this.getUserInfo(); |
| 35 | 46 | }, |
| 36 | 47 | methods: { |
| 37 | - checkLogin(){ | |
| 38 | - //检查是否存在session | |
| 39 | - if (userService.getToken() == null){ | |
| 40 | - //如果没有登录状态则跳转到登录页 | |
| 41 | - // this.$router.push('/login'); | |
| 42 | - } | |
| 43 | - | |
| 44 | - }, | |
| 45 | 48 | }, |
| 46 | 49 | components: {} |
| 47 | 50 | }; | ... | ... |
web_src/src/components/dialog/StreamProxyEdit.vue
| ... | ... | @@ -84,9 +84,9 @@ |
| 84 | 84 | </el-form-item> |
| 85 | 85 | |
| 86 | 86 | <el-form-item label="无人观看" prop="rtpType" > |
| 87 | - <el-radio v-model="proxyParam.noneReader" label="1">不做处理</el-radio> | |
| 88 | - <el-radio v-model="proxyParam.enableDisableNoneReader" label="2">停用</el-radio> | |
| 89 | - <el-radio v-model="proxyParam.enableRemoveNoneReader" label="3">移除</el-radio> | |
| 87 | + <el-radio v-model="proxyParam.noneReader" label="0">不做处理</el-radio> | |
| 88 | + <el-radio v-model="proxyParam.noneReader" label="1">停用</el-radio> | |
| 89 | + <el-radio v-model="proxyParam.noneReader" label="2">移除</el-radio> | |
| 90 | 90 | <!-- <el-select--> |
| 91 | 91 | <!-- @change="noneReaderHandler"--> |
| 92 | 92 | <!-- v-model="proxyParam.noneReader"--> | ... | ... |