Commit d413cdc1 by danmo

feat:

1 parent 9e9af135
...@@ -408,9 +408,7 @@ public class WeTaskFissionServiceImpl implements IWeTaskFissionService { ...@@ -408,9 +408,7 @@ public class WeTaskFissionServiceImpl implements IWeTaskFissionService {
private String getGroupFissionQrcode(Long taskFissionId, WeTaskFissionRecord record, WeCustomer weCustomer) { private String getGroupFissionQrcode(Long taskFissionId, WeTaskFissionRecord record, WeCustomer weCustomer) {
String qrCode = null; String qrCode = null;
if (weCustomer != null) { if (weCustomer != null) {
String avatar = weCustomer.getAvatar(); String avatarUrl = weCustomer.getAvatar();
WeMaterial file = weMaterialService.findWeMaterialById(Long.parseLong(avatar));
String avatarUrl = StringUtils.isEmpty(avatar) ? file.getMaterialUrl() : avatar;
String content = "/wecom/fission/complete/" + taskFissionId + "/records/" + record.getId(); String content = "/wecom/fission/complete/" + taskFissionId + "/records/" + record.getId();
BufferedImage bufferedImage = QREncode.crateQRCode(content, avatarUrl); BufferedImage bufferedImage = QREncode.crateQRCode(content, avatarUrl);
if (bufferedImage != null) { if (bufferedImage != null) {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!