临时提交
This commit is contained in:
@@ -32,6 +32,7 @@ import io.swagger.v3.oas.annotations.security.SecurityRequirement;
|
||||
import io.swagger.v3.oas.annotations.tags.Tag;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.util.Assert;
|
||||
import org.springframework.util.ObjectUtils;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
import org.springframework.web.context.request.async.DeferredResult;
|
||||
@@ -90,9 +91,8 @@ public class PlayController {
|
||||
@PathVariable String channelId) {
|
||||
|
||||
log.info("[开始点播] deviceId:{}, channelId:{}, ", deviceId, channelId);
|
||||
if (ObjectUtils.isEmpty(deviceId) || ObjectUtils.isEmpty(channelId)) {
|
||||
throw new ControllerException(ErrorCode.ERROR400);
|
||||
}
|
||||
Assert.notNull(deviceId, "设备国标编号不可为NULL");
|
||||
Assert.notNull(channelId, "通道国标编号不可为NULL");
|
||||
// 获取可用的zlm
|
||||
Device device = deviceService.getDevice(deviceId);
|
||||
MediaServer newMediaServerItem = playService.getNewMediaServerItem(device);
|
||||
|
||||
Reference in New Issue
Block a user