优化直播流点播流程, 添加流代理接口添加直接关联国标功能

This commit is contained in:
panlinlin
2021-05-07 17:24:49 +08:00
parent 1c7f7ef7b7
commit bd570d167b
9 changed files with 127 additions and 47 deletions

View File

@@ -75,10 +75,15 @@ public class StreamProxyController {
@ResponseBody
public WVPResult del(String app, String stream){
logger.info("移除代理: " + app + "/" + stream);
streamProxyService.del(app, stream);
WVPResult<Object> result = new WVPResult<>();
result.setCode(0);
result.setMsg("success");
if (app == null || stream == null) {
result.setCode(400);
result.setMsg(app == null ?"app不能为null":"stream不能为null");
}else {
streamProxyService.del(app, stream);
result.setCode(0);
result.setMsg("success");
}
return result;
}