|
@@ -14,6 +14,7 @@ import com.tzld.piaoquan.content.understanding.common.exception.CommonException;
|
|
import com.tzld.piaoquan.content.understanding.dao.mapper.*;
|
|
import com.tzld.piaoquan.content.understanding.dao.mapper.*;
|
|
import com.tzld.piaoquan.content.understanding.model.dto.ContentDTO;
|
|
import com.tzld.piaoquan.content.understanding.model.dto.ContentDTO;
|
|
import com.tzld.piaoquan.content.understanding.model.dto.TaskResultDTO;
|
|
import com.tzld.piaoquan.content.understanding.model.dto.TaskResultDTO;
|
|
|
|
+import com.tzld.piaoquan.content.understanding.model.dto.VideoUnderstandingMessageDTO;
|
|
import com.tzld.piaoquan.content.understanding.model.param.*;
|
|
import com.tzld.piaoquan.content.understanding.model.param.*;
|
|
import com.tzld.piaoquan.content.understanding.model.po.*;
|
|
import com.tzld.piaoquan.content.understanding.model.po.*;
|
|
import com.tzld.piaoquan.content.understanding.model.vo.TaskResultVO;
|
|
import com.tzld.piaoquan.content.understanding.model.vo.TaskResultVO;
|
|
@@ -457,19 +458,22 @@ public class ContentServiceImpl implements ContentService {
|
|
}
|
|
}
|
|
//解冻
|
|
//解冻
|
|
aliyunOssManager.restoreObject(TRANSCODE_BUCKET, transedVideoPath, EXPIRE_DAYS);
|
|
aliyunOssManager.restoreObject(TRANSCODE_BUCKET, transedVideoPath, EXPIRE_DAYS);
|
|
- Map<String, Object> messageMap = new HashMap<>();
|
|
|
|
- messageMap.put("videoId", videoId);
|
|
|
|
|
|
+// Map<String, Object> messageMap = new HashMap<>();
|
|
|
|
+// messageMap.put("videoId", videoId);
|
|
|
|
+ VideoUnderstandingMessageDTO messageDTO = new VideoUnderstandingMessageDTO();
|
|
|
|
+ messageDTO.setVideoId(videoId);
|
|
Duration duration;
|
|
Duration duration;
|
|
if (isCodeArchive) {
|
|
if (isCodeArchive) {
|
|
duration = Duration.ofHours(1);
|
|
duration = Duration.ofHours(1);
|
|
} else {
|
|
} else {
|
|
duration = Duration.ofHours(12);
|
|
duration = Duration.ofHours(12);
|
|
}
|
|
}
|
|
|
|
+
|
|
try {
|
|
try {
|
|
- MessageId messageId = oldVersionRemainVideoUnderstandingProducer.syncSendDelayMessage(messageMap, duration);
|
|
|
|
|
|
+ MessageId messageId = oldVersionRemainVideoUnderstandingProducer.syncSendDelayMessage(messageDTO, duration);
|
|
log.info("syncSendDelayMessage messageId = {}", messageId);
|
|
log.info("syncSendDelayMessage messageId = {}", messageId);
|
|
} catch (Exception e) {
|
|
} catch (Exception e) {
|
|
- log.error("syncSendDelayMessage error messageMap = {}", e, messageMap);
|
|
|
|
|
|
+ log.error("syncSendDelayMessage error messageDTO = {}", e, messageDTO);
|
|
}
|
|
}
|
|
return null;
|
|
return null;
|
|
} else {
|
|
} else {
|
|
@@ -508,8 +512,10 @@ public class ContentServiceImpl implements ContentService {
|
|
}
|
|
}
|
|
//解冻
|
|
//解冻
|
|
aliyunOssManager.restoreObject(TRANSCODE_BUCKET, videoPath, EXPIRE_DAYS);
|
|
aliyunOssManager.restoreObject(TRANSCODE_BUCKET, videoPath, EXPIRE_DAYS);
|
|
- Map<String, Object> messageMap = new HashMap<>();
|
|
|
|
- messageMap.put("videoId", videoId);
|
|
|
|
|
|
+// Map<String, Object> messageMap = new HashMap<>();
|
|
|
|
+// messageMap.put("videoId", videoId);
|
|
|
|
+ VideoUnderstandingMessageDTO messageDTO = new VideoUnderstandingMessageDTO();
|
|
|
|
+ messageDTO.setVideoId(videoId);
|
|
Duration duration;
|
|
Duration duration;
|
|
if (isCodeArchive) {
|
|
if (isCodeArchive) {
|
|
duration = Duration.ofHours(1);
|
|
duration = Duration.ofHours(1);
|
|
@@ -517,9 +523,9 @@ public class ContentServiceImpl implements ContentService {
|
|
duration = Duration.ofHours(12);
|
|
duration = Duration.ofHours(12);
|
|
}
|
|
}
|
|
try {
|
|
try {
|
|
- oldVersionRemainVideoUnderstandingProducer.syncSendDelayMessage(messageMap, duration);
|
|
|
|
|
|
+ oldVersionRemainVideoUnderstandingProducer.syncSendDelayMessage(messageDTO, duration);
|
|
} catch (Exception e) {
|
|
} catch (Exception e) {
|
|
- log.error("syncSendDelayMessage error messageMap = {}", e, messageMap);
|
|
|
|
|
|
+ log.error("syncSendDelayMessage error messageDTO = {}", e, messageDTO);
|
|
}
|
|
}
|
|
return null;
|
|
return null;
|
|
} else {
|
|
} else {
|