Commit 88d5b106cfcf430f49e72b1211da87b5bfeff957
1 parent
08c45876
优化拉流代理参数默认值
Showing
1 changed file
with
1 additions
and
0 deletions
src/main/java/com/genersoft/iot/vmp/vmanager/streamProxy/StreamProxyController.java
| @@ -70,6 +70,7 @@ public class StreamProxyController { | @@ -70,6 +70,7 @@ public class StreamProxyController { | ||
| 70 | public WVPResult save(@RequestBody StreamProxyItem param){ | 70 | public WVPResult save(@RequestBody StreamProxyItem param){ |
| 71 | logger.info("添加代理: " + JSONObject.toJSONString(param)); | 71 | logger.info("添加代理: " + JSONObject.toJSONString(param)); |
| 72 | if (StringUtils.isEmpty(param.getMediaServerId())) param.setMediaServerId("auto"); | 72 | if (StringUtils.isEmpty(param.getMediaServerId())) param.setMediaServerId("auto"); |
| 73 | + if (StringUtils.isEmpty(param.getType())) param.setType("default"); | ||
| 73 | WVPResult<StreamInfo> result = streamProxyService.save(param); | 74 | WVPResult<StreamInfo> result = streamProxyService.save(param); |
| 74 | return result; | 75 | return result; |
| 75 | } | 76 | } |