|
@@ -72,7 +72,7 @@ public class MaterialInfoServiceImpl extends ServiceImpl<MaterialInfoMapper, Mat
|
|
public void watermarkVideo(String materialId, Long videoWatermarkTemplateId, String userId) {
|
|
public void watermarkVideo(String materialId, Long videoWatermarkTemplateId, String userId) {
|
|
TencentWatermarkTemplate tentcentWatermarkTemplate = tencentWatermarkTemplateService.getById(videoWatermarkTemplateId);
|
|
TencentWatermarkTemplate tentcentWatermarkTemplate = tencentWatermarkTemplateService.getById(videoWatermarkTemplateId);
|
|
MaterialInfo materialInfo = this.getById(materialId);
|
|
MaterialInfo materialInfo = this.getById(materialId);
|
|
- String path = materialInfo.getUrl().substring(materialInfo.getUrl().indexOf("/", 10) + 1, materialInfo.getUrl().length());
|
|
|
|
|
|
+ String path = URLDecoder.decode(materialInfo.getUrl().substring(materialInfo.getUrl().indexOf("/", 10) + 1, materialInfo.getUrl().length()));
|
|
String taskId = videoWatermarkHandle(path, tentcentWatermarkTemplate.getTemplateId());
|
|
String taskId = videoWatermarkHandle(path, tentcentWatermarkTemplate.getTemplateId());
|
|
DescribeTaskDetailResponse taskDetailResponse = null;
|
|
DescribeTaskDetailResponse taskDetailResponse = null;
|
|
for (int i = 0; i < 10; i++) {
|
|
for (int i = 0; i < 10; i++) {
|