Commit cdc907af by 孙喜旺

修改群裂变前端路径

1 parent 67ae87c8
...@@ -201,12 +201,7 @@ public class WeTaskFissionServiceImpl implements IWeTaskFissionService { ...@@ -201,12 +201,7 @@ public class WeTaskFissionServiceImpl implements IWeTaskFissionService {
//目标员工id //目标员工id
String fissStaffId = weTaskFission.getFissionTargetId(); String fissStaffId = weTaskFission.getFissionTargetId();
//H5生成海报页面路径 //H5生成海报页面路径
StringBuilder pageUrlBuilder = new StringBuilder(); StringBuilder pageUrlBuilder = new StringBuilder(pageUrl);
if(weTaskFission.getFissionType() != null && weTaskFission.getFissionType() == 1){
pageUrlBuilder.append(pageUrl);
}else if(weTaskFission.getFissionType() != null && weTaskFission.getFissionType() == 2){
pageUrlBuilder.append(pageGroupUrl);
}
pageUrlBuilder.append("?") pageUrlBuilder.append("?")
.append("fissionId=").append(id) .append("fissionId=").append(id)
.append("&") .append("&")
...@@ -415,8 +410,13 @@ public class WeTaskFissionServiceImpl implements IWeTaskFissionService { ...@@ -415,8 +410,13 @@ public class WeTaskFissionServiceImpl implements IWeTaskFissionService {
String qrCode = null; String qrCode = null;
if (weCustomer != null) { if (weCustomer != null) {
String avatarUrl = weCustomer.getAvatar(); String avatarUrl = weCustomer.getAvatar();
String content = "/wecom/fission/complete/" + taskFissionId + "/records/" + record.getId(); StringBuilder contentBuilder = new StringBuilder(pageGroupUrl);
BufferedImage bufferedImage = QREncode.crateQRCode(content, avatarUrl); contentBuilder.append("?")
.append("fissionId=")
.append(taskFissionId)
.append("recordId=")
.append(record.getId());
BufferedImage bufferedImage = QREncode.crateQRCode(contentBuilder.toString(), avatarUrl);
if (bufferedImage != null) { if (bufferedImage != null) {
try (ByteArrayOutputStream byteArrayOutputStream = new ByteArrayOutputStream()) { try (ByteArrayOutputStream byteArrayOutputStream = new ByteArrayOutputStream()) {
ImageIO.write(bufferedImage, "png", byteArrayOutputStream); ImageIO.write(bufferedImage, "png", byteArrayOutputStream);
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!