Commit 838af319 by 孙喜旺

修复群活码生成二维码失败问题

1 parent 6ec47483
...@@ -451,7 +451,8 @@ public class WeTaskFissionServiceImpl extends ServiceImpl<WeTaskFissionMapper, W ...@@ -451,7 +451,8 @@ public class WeTaskFissionServiceImpl extends ServiceImpl<WeTaskFissionMapper, W
ImageIO.write(bufferedImage, "png", byteArrayOutputStream); ImageIO.write(bufferedImage, "png", byteArrayOutputStream);
NetFileUtils.StreamMultipartFile streamMultipartFile = new NetFileUtils.StreamMultipartFile(System.currentTimeMillis() + ".jpg", byteArrayOutputStream.toByteArray()); NetFileUtils.StreamMultipartFile streamMultipartFile = new NetFileUtils.StreamMultipartFile(System.currentTimeMillis() + ".jpg", byteArrayOutputStream.toByteArray());
JSONObject fileInfo = FileUtil.upload(streamMultipartFile); JSONObject fileInfo = FileUtil.upload(streamMultipartFile);
return fileInfo.getString("imgUrlPrefix"); log.info(">>>>>>>>>>>>fileInfo:{}",fileInfo.toJSONString());
return fileInfo.getString("imgUrlPrefix")+fileInfo.getString("fileName");
} catch (Exception e) { } catch (Exception e) {
log.warn("生成海报二维码异常, record={}, customer={}, exception={}", JSONObject.toJSONString(record), JSONObject.toJSONString(weCustomer), ExceptionUtils.getStackTrace(e)); log.warn("生成海报二维码异常, record={}, customer={}, exception={}", JSONObject.toJSONString(record), JSONObject.toJSONString(weCustomer), ExceptionUtils.getStackTrace(e));
throw new WeComException("生成二维码异常"); throw new WeComException("生成二维码异常");
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!