Browse Source

修复默认media未保存到数据库的bug

pull/174/head
648540858 3 years ago
parent
commit
2766373632
  1. 2
      src/main/java/com/genersoft/iot/vmp/media/zlm/ZLMRunner.java

2
src/main/java/com/genersoft/iot/vmp/media/zlm/ZLMRunner.java

@ -111,7 +111,7 @@ public class ZLMRunner implements CommandLineRunner {
public ZLMServerConfig getMediaServerConfig(MediaServerItem mediaServerItem) {
if (startGetMedia == null) { return null;}
if (mediaServerService.getOne(mediaServerItem.getId()) == null) {
if (!mediaServerItem.isDefaultServer() && mediaServerService.getOne(mediaServerItem.getId()) == null) {
return null;
}
if ( startGetMedia.get(mediaServerItem.getId()) == null || !startGetMedia.get(mediaServerItem.getId())) {

Loading…
Cancel
Save