Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
江名洋
/
linkwe-scrm
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit cdc907af
authored
May 06, 2021
by
孙喜旺
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
修改群裂变前端路径
1 parent
67ae87c8
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
8 deletions
linkwe-wecom/src/main/java/com/linkwechat/wecom/service/impl/WeTaskFissionServiceImpl.java
linkwe-wecom/src/main/java/com/linkwechat/wecom/service/impl/WeTaskFissionServiceImpl.java
View file @
cdc907a
...
...
@@ -201,12 +201,7 @@ public class WeTaskFissionServiceImpl implements IWeTaskFissionService {
//目标员工id
String
fissStaffId
=
weTaskFission
.
getFissionTargetId
();
//H5生成海报页面路径
StringBuilder
pageUrlBuilder
=
new
StringBuilder
();
if
(
weTaskFission
.
getFissionType
()
!=
null
&&
weTaskFission
.
getFissionType
()
==
1
){
pageUrlBuilder
.
append
(
pageUrl
);
}
else
if
(
weTaskFission
.
getFissionType
()
!=
null
&&
weTaskFission
.
getFissionType
()
==
2
){
pageUrlBuilder
.
append
(
pageGroupUrl
);
}
StringBuilder
pageUrlBuilder
=
new
StringBuilder
(
pageUrl
);
pageUrlBuilder
.
append
(
"?"
)
.
append
(
"fissionId="
).
append
(
id
)
.
append
(
"&"
)
...
...
@@ -415,8 +410,13 @@ public class WeTaskFissionServiceImpl implements IWeTaskFissionService {
String
qrCode
=
null
;
if
(
weCustomer
!=
null
)
{
String
avatarUrl
=
weCustomer
.
getAvatar
();
String
content
=
"/wecom/fission/complete/"
+
taskFissionId
+
"/records/"
+
record
.
getId
();
BufferedImage
bufferedImage
=
QREncode
.
crateQRCode
(
content
,
avatarUrl
);
StringBuilder
contentBuilder
=
new
StringBuilder
(
pageGroupUrl
);
contentBuilder
.
append
(
"?"
)
.
append
(
"fissionId="
)
.
append
(
taskFissionId
)
.
append
(
"recordId="
)
.
append
(
record
.
getId
());
BufferedImage
bufferedImage
=
QREncode
.
crateQRCode
(
contentBuilder
.
toString
(),
avatarUrl
);
if
(
bufferedImage
!=
null
)
{
try
(
ByteArrayOutputStream
byteArrayOutputStream
=
new
ByteArrayOutputStream
())
{
ImageIO
.
write
(
bufferedImage
,
"png"
,
byteArrayOutputStream
);
...
...
Write
Preview
Markdown
is supported
Attach a file
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 post a comment