|
@@ -322,9 +322,11 @@ public class MessageAttachmentServiceImpl implements MessageAttachmentService {
|
|
|
String shareImgPath = jsonObject.getString("shareImgPath");
|
|
|
String title = jsonObject.getString("title");
|
|
|
String videoPath = jsonObject.getString("videoPath");
|
|
|
+ String videoCoverSnapshotPath = jsonObject.getString("videoCoverSnapshotPath");
|
|
|
videoDetail.setCover(shareImgPath);
|
|
|
videoDetail.setTitle(title);
|
|
|
videoDetail.setVideoPath(videoPath);
|
|
|
+ videoDetail.setVideoCoverSnapshotPath(videoCoverSnapshotPath);
|
|
|
videoDetail.setAuditStatus(jsonObject.getInteger("auditStatus"));
|
|
|
videoDetail.setRecommendStatus(jsonObject.getInteger("recommendStatus"));
|
|
|
map.put(videoId, videoDetail);
|
|
@@ -386,7 +388,6 @@ public class MessageAttachmentServiceImpl implements MessageAttachmentService {
|
|
|
|
|
|
}
|
|
|
|
|
|
-
|
|
|
@Override
|
|
|
public String getPage(Staff staff, Long videoId, String typeOne, String typeTwo) {
|
|
|
try {
|
|
@@ -404,6 +405,19 @@ public class MessageAttachmentServiceImpl implements MessageAttachmentService {
|
|
|
return null;
|
|
|
}
|
|
|
|
|
|
+ @Override
|
|
|
+ public String getPageNoCache(Staff staff, Long videoId, String typeOne, String typeTwo) {
|
|
|
+ try {
|
|
|
+ if (staff == null || staff.getCarrierId() == null) {
|
|
|
+ return "";
|
|
|
+ }
|
|
|
+ return insertPage(staff.getCarrierId(), videoId, staff.getRemark(), typeOne, typeTwo);
|
|
|
+ } catch (IOException e) {
|
|
|
+ log.error("MessageAttachmentService getPageNoCache error", e);
|
|
|
+ }
|
|
|
+ return null;
|
|
|
+ }
|
|
|
+
|
|
|
private String insertPage(String carrierId, Long videoId, String remark, String typeOne, String typeTwo) throws IOException {
|
|
|
AdPutFlowParam param = new AdPutFlowParam();
|
|
|
param.setChannel("tencentqw");
|