Просмотр исходного кода

修改请求方式

tags/v1.0.0^2
chengwang 1 год назад
Родитель
Сommit
b45550723f
1 измененных файлов: 2 добавлений и 4 удалений
  1. +2
    -4
      tuoheng-service/tuoheng-admin/src/main/java/com/tuoheng/admin/service/inspection/upload/UploadFlightUrlService.java

+ 2
- 4
tuoheng-service/tuoheng-admin/src/main/java/com/tuoheng/admin/service/inspection/upload/UploadFlightUrlService.java Просмотреть файл

@@ -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);

Загрузка…
Отмена
Сохранить