|
@@ -398,7 +398,7 @@ public class MessageAttachmentServiceImpl implements MessageAttachmentService {
|
|
|
if (StringUtils.isNotEmpty(page)) {
|
|
if (StringUtils.isNotEmpty(page)) {
|
|
|
return page;
|
|
return page;
|
|
|
}
|
|
}
|
|
|
- return insertPage(staff.getCarrierId(), videoId, staff.getRemark(), typeOne, typeTwo);
|
|
|
|
|
|
|
+ return insertPage("touliu", staff.getCarrierId(), videoId, staff.getRemark(), typeOne, typeTwo);
|
|
|
} catch (IOException e) {
|
|
} catch (IOException e) {
|
|
|
log.error("MessageAttachmentService getPage error", e);
|
|
log.error("MessageAttachmentService getPage error", e);
|
|
|
}
|
|
}
|
|
@@ -406,24 +406,24 @@ public class MessageAttachmentServiceImpl implements MessageAttachmentService {
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
@Override
|
|
|
- public String getPageNoCache(Staff staff, Long videoId, String typeOne, String typeTwo) {
|
|
|
|
|
|
|
+ public String getPageNoCache(String putScene, Staff staff, Long videoId, String typeOne, String typeTwo) {
|
|
|
try {
|
|
try {
|
|
|
if (staff == null || staff.getCarrierId() == null) {
|
|
if (staff == null || staff.getCarrierId() == null) {
|
|
|
return "";
|
|
return "";
|
|
|
}
|
|
}
|
|
|
- return insertPage(staff.getCarrierId(), videoId, staff.getRemark(), typeOne, typeTwo);
|
|
|
|
|
|
|
+ return insertPage(putScene, staff.getCarrierId(), videoId, staff.getRemark(), typeOne, typeTwo);
|
|
|
} catch (IOException e) {
|
|
} catch (IOException e) {
|
|
|
log.error("MessageAttachmentService getPageNoCache error", e);
|
|
log.error("MessageAttachmentService getPageNoCache error", e);
|
|
|
}
|
|
}
|
|
|
return null;
|
|
return null;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- private String insertPage(String carrierId, Long videoId, String remark, String typeOne, String typeTwo) throws IOException {
|
|
|
|
|
|
|
+ private String insertPage(String putScene, String carrierId, Long videoId, String remark, String typeOne, String typeTwo) throws IOException {
|
|
|
AdPutFlowParam param = new AdPutFlowParam();
|
|
AdPutFlowParam param = new AdPutFlowParam();
|
|
|
param.setChannel("tencentqw");
|
|
param.setChannel("tencentqw");
|
|
|
param.setPath("pages/category.html");
|
|
param.setPath("pages/category.html");
|
|
|
param.setPutCarrierId(carrierId);
|
|
param.setPutCarrierId(carrierId);
|
|
|
- param.setPutScene("touliu");
|
|
|
|
|
|
|
+ param.setPutScene(putScene);
|
|
|
param.setPutStartDate(DateUtil.getDayDateString("yyyy-MM-dd"));
|
|
param.setPutStartDate(DateUtil.getDayDateString("yyyy-MM-dd"));
|
|
|
param.setPutTypeOne(typeOne);
|
|
param.setPutTypeOne(typeOne);
|
|
|
param.setPutTypeTwo(typeTwo);
|
|
param.setPutTypeTwo(typeTwo);
|