Commit d94135c9cd8b12fc511055af4398ad3a584a44d6
Merge remote-tracking branch 'origin/master' into wvp-28181-2.0
Showing
4 changed files
with
9 additions
and
7 deletions
.gitignore
| @@ -9,7 +9,7 @@ | @@ -9,7 +9,7 @@ | ||
| 9 | 9 | ||
| 10 | # Mobile Tools for Java (J2ME) | 10 | # Mobile Tools for Java (J2ME) |
| 11 | .mtj.tmp/ | 11 | .mtj.tmp/ |
| 12 | - | 12 | +src/main/resources/application-*.yml |
| 13 | # Package Files # | 13 | # Package Files # |
| 14 | #*.jar | 14 | #*.jar |
| 15 | *.war | 15 | *.war |
| @@ -18,7 +18,7 @@ | @@ -18,7 +18,7 @@ | ||
| 18 | *.zip | 18 | *.zip |
| 19 | *.tar.gz | 19 | *.tar.gz |
| 20 | *.rar | 20 | *.rar |
| 21 | - | 21 | +*.iml |
| 22 | # virtual machine crash logs, see http://www.java.com/en/download/help/error_hotspot.xml | 22 | # virtual machine crash logs, see http://www.java.com/en/download/help/error_hotspot.xml |
| 23 | hs_err_pid* | 23 | hs_err_pid* |
| 24 | /.idea/* | 24 | /.idea/* |
src/main/java/com/genersoft/iot/vmp/gb28181/SipLayer.java
| @@ -121,7 +121,9 @@ public class SipLayer implements SipListener { | @@ -121,7 +121,9 @@ public class SipLayer implements SipListener { | ||
| 121 | logger.debug(evt.getRequest().toString()); | 121 | logger.debug(evt.getRequest().toString()); |
| 122 | // 由于jainsip是单线程程序,为提高性能并发处理 | 122 | // 由于jainsip是单线程程序,为提高性能并发处理 |
| 123 | processThreadPool.execute(() -> { | 123 | processThreadPool.execute(() -> { |
| 124 | - processorFactory.createRequestProcessor(evt).process(); | 124 | + if (processorFactory != null) { |
| 125 | + processorFactory.createRequestProcessor(evt).process(); | ||
| 126 | + } | ||
| 125 | }); | 127 | }); |
| 126 | } | 128 | } |
| 127 | 129 |
src/main/java/com/genersoft/iot/vmp/storager/impl/VideoManagerStoragerImpl.java
| @@ -119,7 +119,7 @@ public class VideoManagerStoragerImpl implements IVideoManagerStorager { | @@ -119,7 +119,7 @@ public class VideoManagerStoragerImpl implements IVideoManagerStorager { | ||
| 119 | @Override | 119 | @Override |
| 120 | public PageInfo queryChannelsByDeviceId(String deviceId, String query, Boolean hasSubChannel, Boolean online, int page, int count) { | 120 | public PageInfo queryChannelsByDeviceId(String deviceId, String query, Boolean hasSubChannel, Boolean online, int page, int count) { |
| 121 | // 获取到所有正在播放的流 | 121 | // 获取到所有正在播放的流 |
| 122 | - PageHelper.startPage(page, count); | 122 | + PageHelper.startPage(page+1, count); |
| 123 | List<DeviceChannel> all = deviceChannelMapper.queryChannelsByDeviceId(deviceId, null, query, hasSubChannel, online); | 123 | List<DeviceChannel> all = deviceChannelMapper.queryChannelsByDeviceId(deviceId, null, query, hasSubChannel, online); |
| 124 | return new PageInfo<>(all); | 124 | return new PageInfo<>(all); |
| 125 | } | 125 | } |
| @@ -131,7 +131,7 @@ public class VideoManagerStoragerImpl implements IVideoManagerStorager { | @@ -131,7 +131,7 @@ public class VideoManagerStoragerImpl implements IVideoManagerStorager { | ||
| 131 | 131 | ||
| 132 | @Override | 132 | @Override |
| 133 | public PageInfo<DeviceChannel> querySubChannels(String deviceId, String parentChannelId, String query, Boolean hasSubChannel, String online, int page, int count) { | 133 | public PageInfo<DeviceChannel> querySubChannels(String deviceId, String parentChannelId, String query, Boolean hasSubChannel, String online, int page, int count) { |
| 134 | - PageHelper.startPage(page, count); | 134 | + PageHelper.startPage(page+1, count); |
| 135 | List<DeviceChannel> all = deviceChannelMapper.queryChannelsByDeviceId(deviceId, parentChannelId, null, null, null); | 135 | List<DeviceChannel> all = deviceChannelMapper.queryChannelsByDeviceId(deviceId, parentChannelId, null, null, null); |
| 136 | return new PageInfo<>(all); | 136 | return new PageInfo<>(all); |
| 137 | } | 137 | } |
| @@ -151,7 +151,7 @@ public class VideoManagerStoragerImpl implements IVideoManagerStorager { | @@ -151,7 +151,7 @@ public class VideoManagerStoragerImpl implements IVideoManagerStorager { | ||
| 151 | */ | 151 | */ |
| 152 | @Override | 152 | @Override |
| 153 | public PageInfo<Device> queryVideoDeviceList(int page, int count) { | 153 | public PageInfo<Device> queryVideoDeviceList(int page, int count) { |
| 154 | - PageHelper.startPage(page, count); | 154 | + PageHelper.startPage(page+1, count); |
| 155 | List<Device> all = deviceMapper.getDevices(); | 155 | List<Device> all = deviceMapper.getDevices(); |
| 156 | return new PageInfo<>(all); | 156 | return new PageInfo<>(all); |
| 157 | } | 157 | } |
web_src/src/components/channelList.vue
| @@ -108,7 +108,7 @@ export default { | @@ -108,7 +108,7 @@ export default { | ||
| 108 | mounted() { | 108 | mounted() { |
| 109 | this.initData(); | 109 | this.initData(); |
| 110 | if (this.autoList) { | 110 | if (this.autoList) { |
| 111 | - this.updateLooper = setInterval(this.initData, 1500); | 111 | + this.updateLooper = setInterval(this.initData, 5000); |
| 112 | } | 112 | } |
| 113 | 113 | ||
| 114 | }, | 114 | }, |