记得上下班打卡 | git大法好,push需谨慎
Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
liquidnet-bus-v1
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
董敬伟
liquidnet-bus-v1
Commits
e24d6509
Commit
e24d6509
authored
Jul 19, 2021
by
jiangxiulong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
test
parent
f0e3ec11
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
CodeUtil.java
...ent/admin/zhengzai/admin/service/impl/utils/CodeUtil.java
+4
-3
No files found.
liquidnet-bus-client/liquidnet-client-admin/liquidnet-client-admin-zhengzai/src/main/java/com/liquidnet/client/admin/zhengzai/admin/service/impl/utils/CodeUtil.java
View file @
e24d6509
...
...
@@ -193,18 +193,17 @@ public class CodeUtil {
public
static
String
html2img
(
KylinOrderExpress
kylinOrderExpress
,
String
jContact
,
String
jAddress
,
String
jTel
,
KylinOrderTickets
orderInfo
)
{
String
barCode
=
getBarCode
(
kylinOrderExpress
.
getMailno
(),
90
,
13
);
logger
.
error
(
barCode
);
String
qrCode
=
getQRCode
(
"2453657424"
,
25
,
25
);
logger
.
error
(
qrCode
);
String
html
=
tmpHtml
();
// 码图
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"
))
.
replace
(
"images/iconShou.png"
,
pathName
.
concat
(
"images/iconShou.png"
));
logger
.
error
(
"replace2"
,
replace2
);
String
replace3
=
replace2
.
replace
(
"SF1010874393776"
,
kylinOrderExpress
.
getMailno
())
.
replace
(
"755W-BA-0123456789"
,
kylinOrderExpress
.
getDestRouteLabel
())
...
...
@@ -222,9 +221,11 @@ public class CodeUtil {
.
replace
(
"18510989999"
,
jTel
)
.
replace
(
"寄件地址北京市朝阳区摩登天空测试地址"
,
jAddress
)
;
logger
.
error
(
"replace3"
,
replace3
);
Html2Image
html2Image
=
Html2Image
.
fromHtml
(
replace3
);
String
imgPath
=
pathName
.
concat
(
"qrcode/img.png"
);
logger
.
error
(
"imgPath"
,
imgPath
);
html2Image
.
getImageRenderer
().
saveImage
(
imgPath
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment