|
|
@@ -2,6 +2,7 @@ package com.iformall.controller; |
|
|
|
|
|
|
|
import com.alibaba.fastjson.JSONObject; |
|
|
|
import com.github.pagehelper.PageInfo; |
|
|
|
import com.iformall.annotation.AuthIgnore; |
|
|
|
import com.iformall.common.ErrorCode; |
|
|
|
import com.iformall.common.ResultData; |
|
|
|
import com.iformall.domain.po.base.BaseEntity; |
|
|
@@ -207,6 +208,7 @@ public class UserMouldVideoController extends BaseController { |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
@AuthIgnore |
|
|
|
@SneakyThrows |
|
|
|
@GetMapping("exportVideo") |
|
|
|
public void exportVideo(Long id, HttpServletRequest request, HttpServletResponse response) { |
|
|
@@ -226,9 +228,9 @@ public class UserMouldVideoController extends BaseController { |
|
|
|
} |
|
|
|
UserMouldVideo mouldVideo = userMouldVideoService.getById(id); |
|
|
|
|
|
|
|
if(mouldVideo == null || !mouldVideo.getUserId().equals(getMemberId())){ |
|
|
|
throw new MallinkException(ErrorCode.SYS_PARAMETER_NOT_NULL.getCode(),"未找到用户数据"); |
|
|
|
} |
|
|
|
// if(mouldVideo == null || !mouldVideo.getUserId().equals(getMemberId())){ |
|
|
|
// throw new MallinkException(ErrorCode.SYS_PARAMETER_NOT_NULL.getCode(),"未找到用户数据"); |
|
|
|
// } |
|
|
|
if(!EnumVideoStatus.upload_success.getCode().equals(mouldVideo.getVideoStatus())){ |
|
|
|
throw new MallinkException(ErrorCode.SYS_PARAMETER_ERROR.getCode(),"视频未生成成功"); |
|
|
|
} |
|
|
|