|
@@ -27,6 +27,7 @@ import org.springframework.stereotype.Service;
|
|
|
|
|
|
import java.io.IOException;
|
|
|
import java.net.URLEncoder;
|
|
|
+import java.util.HashMap;
|
|
|
import java.util.List;
|
|
|
import java.util.Map;
|
|
|
|
|
@@ -361,6 +362,10 @@ public class MaterialCutFrameServiceImpl extends ServiceImpl<MaterialCutFrameMap
|
|
|
if (!Check.isNull(url)) {
|
|
|
String cutFramePath = LoadFileUtil.downLoadFromUrl(url, imageUpLoadPath);
|
|
|
String cutFrameMd5 = LoadFileUtil.getMD5(cutFramePath);
|
|
|
+ Map<String, Object> deleteMap = new HashMap<>();
|
|
|
+ deleteMap.put("video_signature", materialId);
|
|
|
+ deleteMap.put("signature", cutFrameMd5);
|
|
|
+ this.removeByMap(deleteMap);
|
|
|
MaterialCutFrame cutFrame = new MaterialCutFrame();
|
|
|
cutFrame.setSignature(cutFrameMd5);
|
|
|
cutFrame.setUrl(url);
|