优化拉流代理参数默认值

This commit is contained in:
648540858 2021-11-24 15:46:20 +08:00
parent c667d8f99b
commit 9edbf220e3

View File

@ -70,6 +70,7 @@ public class StreamProxyController {
public WVPResult save(@RequestBody StreamProxyItem param){
logger.info("添加代理: " + JSONObject.toJSONString(param));
if (StringUtils.isEmpty(param.getMediaServerId())) param.setMediaServerId("auto");
if (StringUtils.isEmpty(param.getType())) param.setType("default");
WVPResult<StreamInfo> result = streamProxyService.save(param);
return result;
}