Commit cefe5579 by 吴博

pdf默认值

parent 54dde52b
...@@ -95,7 +95,7 @@ public class CustomPlanBizImpl implements CustomPlanBiz { ...@@ -95,7 +95,7 @@ public class CustomPlanBizImpl implements CustomPlanBiz {
private void fillCustomPlanInfo(CustomPlan customPlan) { private void fillCustomPlanInfo(CustomPlan customPlan) {
Integer planId = customPlan.getId(); Integer planId = customPlan.getId();
customPlan.setPlanNumber(StringUtil.getByObj(100000 + planId)); customPlan.setPlanNumber(StringUtil.getByObj(100000 + planId));
String h5Url = wechatLinkPrefix + "/personalCenter/madeProject?planId=" + planId; String h5Url = wechatLinkPrefix + "/personalCenter/madeProject?planId=" + planId + "&preview=1";
String previewQrcodeUrl = QrcodeUtils.create(UrlUtils.getShortUrl4Own(h5Url)); String previewQrcodeUrl = QrcodeUtils.create(UrlUtils.getShortUrl4Own(h5Url));
customPlan.setH5Url(h5Url); customPlan.setH5Url(h5Url);
customPlan.setPreviewQrcodeUrl(previewQrcodeUrl); customPlan.setPreviewQrcodeUrl(previewQrcodeUrl);
...@@ -170,6 +170,9 @@ public class CustomPlanBizImpl implements CustomPlanBiz { ...@@ -170,6 +170,9 @@ public class CustomPlanBizImpl implements CustomPlanBiz {
LOGGER.info("=========resultStr========End" + resultStr); LOGGER.info("=========resultStr========End" + resultStr);
Map map = JSON.parseObject(resultStr, Map.class); Map map = JSON.parseObject(resultStr, Map.class);
String pdfUrl = (String) ((Map) map.get("data")).get("url"); String pdfUrl = (String) ((Map) map.get("data")).get("url");
if (StringUtil.isEmpty(pdfUrl)){
pdfUrl = "https://oss.5rs.me/rays/img-generator/uPMprBxxHD.pdf";
}
LOGGER.info("=========pdfUrl========" + pdfUrl); LOGGER.info("=========pdfUrl========" + pdfUrl);
if(pdfUrl != null) { if(pdfUrl != null) {
CustomPlan customPlan = new CustomPlan(); CustomPlan customPlan = new CustomPlan();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment