|
@@ -69,11 +69,6 @@ public class ProductArchiveController {
|
|
|
@PostMapping("/add")
|
|
|
public ResponseJson productArchiveAdd(@RequestBody CmProductArchive cmProductArchive
|
|
|
) {
|
|
|
- // if (null == cmProviders.getName() ||
|
|
|
- // null == cmProviders.getLinkMan() ||
|
|
|
- // ) {
|
|
|
- // return ResponseJson.error("参数异常!");
|
|
|
- // }
|
|
|
cmProductArchiveService.addCmProductArchive(cmProductArchive);
|
|
|
return ResponseJson.success();
|
|
|
}
|
|
@@ -106,11 +101,6 @@ public class ProductArchiveController {
|
|
|
@PostMapping("/content/add")
|
|
|
public ResponseJson productArchiveContentAdd(@RequestBody CmProductArchiveContent cmProductArchiveContent
|
|
|
) {
|
|
|
- // if (null == cmProviders.getName() ||
|
|
|
- // null == cmProviders.getLinkMan() ||
|
|
|
- // ) {
|
|
|
- // return ResponseJson.error("参数异常!");
|
|
|
- // }
|
|
|
cmProductArchiveContentService.addCmProductArchiveContent(cmProductArchiveContent);
|
|
|
return ResponseJson.success();
|
|
|
}
|
|
@@ -130,19 +120,4 @@ public class ProductArchiveController {
|
|
|
}
|
|
|
|
|
|
|
|
|
- @GetMapping("/ffmepg")
|
|
|
- public ResponseJson produc(String ffmepgPath) {
|
|
|
- String s = StringUtils.isNotBlank(ffmepgPath) ? ffmepgPath : "E:\\kaick\\tools\\idmZIP\\ffmpeg-6.1-essentials_build\\bin\\ffmpeg.exe";
|
|
|
- HashMap<String, String> dto = new HashMap<String, String>();
|
|
|
- //ffmpeg程序路径
|
|
|
- dto.put("ffmpeg_path", s);
|
|
|
- log.info("ffmepg程序路径:" + s);
|
|
|
- //视频输入路径
|
|
|
- dto.put("input_path", "https://caimei-oss.oss-cn-shenzhen.aliyuncs.com/beta/archiveFile/9719e56b1d87413886a98e9c0ae04a5a.mp4?Expires=4845853915&OSSAccessKeyId=LTAI4GBL3o4YkWnbKYgf2Xia&Signature=otFR7YsvOJTnzOJMjFeZ5khraqA%3D");
|
|
|
- // 白名单
|
|
|
- dto.put("whitelist", "file,http,https,rtp,udp,tcp,tls");
|
|
|
- return ResponseJson.success(new FFMPEG().getVideoSize(dto));
|
|
|
- }
|
|
|
-
|
|
|
-
|
|
|
}
|