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