记得上下班打卡 | git大法好,push需谨慎

Commit e24d6509 authored by jiangxiulong's avatar jiangxiulong

test

parent f0e3ec11
...@@ -193,18 +193,17 @@ public class CodeUtil { ...@@ -193,18 +193,17 @@ public class CodeUtil {
public static String html2img(KylinOrderExpress kylinOrderExpress,String jContact, String jAddress, String jTel, KylinOrderTickets orderInfo) public static String html2img(KylinOrderExpress kylinOrderExpress,String jContact, String jAddress, String jTel, KylinOrderTickets orderInfo)
{ {
String barCode = getBarCode(kylinOrderExpress.getMailno(), 90, 13); String barCode = getBarCode(kylinOrderExpress.getMailno(), 90, 13);
logger.error(barCode);
String qrCode = getQRCode("2453657424", 25, 25); String qrCode = getQRCode("2453657424", 25, 25);
logger.error(qrCode);
String html = tmpHtml(); String html = tmpHtml();
// 码图 // 码图
String replace1 = html.replace("images/yiweima.png", barCode).replace("images/erweima.png", qrCode); String replace1 = html.replace("images/yiweima.png", barCode).replace("images/erweima.png", qrCode);
logger.error("replace1", replace1);
// 收 寄图 // 收 寄图
String replace2 = replace1.replace("images/iconJi.png", pathName.concat("images/iconJi.png")) String replace2 = replace1.replace("images/iconJi.png", pathName.concat("images/iconJi.png"))
.replace("images/iconShou.png", pathName.concat("images/iconShou.png")); .replace("images/iconShou.png", pathName.concat("images/iconShou.png"));
logger.error("replace2", replace2);
String replace3 = replace2.replace("SF1010874393776", kylinOrderExpress.getMailno()) String replace3 = replace2.replace("SF1010874393776", kylinOrderExpress.getMailno())
.replace("755W-BA-0123456789", kylinOrderExpress.getDestRouteLabel()) .replace("755W-BA-0123456789", kylinOrderExpress.getDestRouteLabel())
...@@ -222,9 +221,11 @@ public class CodeUtil { ...@@ -222,9 +221,11 @@ public class CodeUtil {
.replace("18510989999", jTel) .replace("18510989999", jTel)
.replace("寄件地址北京市朝阳区摩登天空测试地址", jAddress) .replace("寄件地址北京市朝阳区摩登天空测试地址", jAddress)
; ;
logger.error("replace3", replace3);
Html2Image html2Image = Html2Image.fromHtml(replace3); Html2Image html2Image = Html2Image.fromHtml(replace3);
String imgPath = pathName.concat("qrcode/img.png"); String imgPath = pathName.concat("qrcode/img.png");
logger.error("imgPath", imgPath);
html2Image.getImageRenderer().saveImage(imgPath); html2Image.getImageRenderer().saveImage(imgPath);
......
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