|
|
@@ -80,8 +80,7 @@ public class UploadFlightUrlService { |
|
|
|
*/ |
|
|
|
public JsonResult uploadFlightUrl(UploadFlightUrlRequest request) { |
|
|
|
log.info("进入上传离线视频业务接口"); |
|
|
|
String tenantId = CurrentUserUtil.getTenantId(); |
|
|
|
JsonResult result = this.check(tenantId, request); |
|
|
|
JsonResult result = this.check(request); |
|
|
|
if (0 != result.getCode()) { |
|
|
|
log.info("上传离线视频业务接口:校验失败:{}", result.getMsg()); |
|
|
|
return result; |
|
|
@@ -129,11 +128,10 @@ public class UploadFlightUrlService { |
|
|
|
/** |
|
|
|
* 检查参数 |
|
|
|
* |
|
|
|
* @param tenantId |
|
|
|
* @param request |
|
|
|
* @return |
|
|
|
*/ |
|
|
|
private JsonResult check(String tenantId, UploadFlightUrlRequest request) { |
|
|
|
private JsonResult check(UploadFlightUrlRequest request) { |
|
|
|
if (StringUtils.isEmpty(request.getVideoUrl()) || StringUtils.isEmpty(request.getSrtUrl()) |
|
|
|
|| StringUtils.isEmpty(request.getTaskCode())) { |
|
|
|
throw new ServiceException(ServiceExceptionEnum.PARAMETER_IS_NULL); |