|
@@ -30,6 +30,7 @@ import org.jeecg.modules.ctop.service.IProjectMemberService;
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
import org.springframework.web.bind.annotation.*;
|
|
import org.springframework.web.bind.annotation.*;
|
|
|
|
|
|
|
|
+import javax.annotation.Resource;
|
|
import javax.servlet.http.HttpServletRequest;
|
|
import javax.servlet.http.HttpServletRequest;
|
|
import java.text.ParseException;
|
|
import java.text.ParseException;
|
|
import java.util.Arrays;
|
|
import java.util.Arrays;
|
|
@@ -51,6 +52,8 @@ import java.util.Map;
|
|
public class MaterialInfoController {
|
|
public class MaterialInfoController {
|
|
@Autowired
|
|
@Autowired
|
|
private IMaterialInfoService materialInfoService;
|
|
private IMaterialInfoService materialInfoService;
|
|
|
|
+ @Resource
|
|
|
|
+ private IMaterialCutFrameService materialCutFrameService;
|
|
@Autowired
|
|
@Autowired
|
|
private IMaterialAscriptionService materialAscriptionService;
|
|
private IMaterialAscriptionService materialAscriptionService;
|
|
@Autowired
|
|
@Autowired
|
|
@@ -76,6 +79,18 @@ public class MaterialInfoController {
|
|
return materialInfoService.correlationUpload(json);
|
|
return materialInfoService.correlationUpload(json);
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ @PostMapping("/supplementFrameUrl")
|
|
|
|
+ public Result<Object> supplementFrameUrl(@RequestParam String videoMD5){
|
|
|
|
+ Result<Object> result=new Result<>();
|
|
|
|
+ boolean bool = materialCutFrameService.updateTencentCutFrame(videoMD5);
|
|
|
|
+ if(!bool){
|
|
|
|
+ result.setSuccess(false);
|
|
|
|
+ result.error500("补全截帧url失败");
|
|
|
|
+ return result;
|
|
|
|
+ }
|
|
|
|
+ result.setSuccess(true);
|
|
|
|
+ return result;
|
|
|
|
+ }
|
|
|
|
|
|
@GetMapping(value = "/report")
|
|
@GetMapping(value = "/report")
|
|
public JSONObject report(String userId) {
|
|
public JSONObject report(String userId) {
|