使用阿里代码规范。规范代码写法
This commit is contained in:
@@ -69,9 +69,15 @@ public class StreamProxyController {
|
||||
@ResponseBody
|
||||
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");
|
||||
if (StringUtils.isEmpty(param.getGbId())) param.setGbId(null);
|
||||
if (StringUtils.isEmpty(param.getMediaServerId())) {
|
||||
param.setMediaServerId("auto");
|
||||
}
|
||||
if (StringUtils.isEmpty(param.getType())) {
|
||||
param.setType("default");
|
||||
}
|
||||
if (StringUtils.isEmpty(param.getGbId())) {
|
||||
param.setGbId(null);
|
||||
}
|
||||
WVPResult<StreamInfo> result = streamProxyService.save(param);
|
||||
return result;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user