fwq
2022-05-09 8fcea52f023500d5ada8afc533989592493e79ce
src/main/java/com/hx/util/QRCodeUtil.java
@@ -55,7 +55,7 @@
         bos = new ByteArrayOutputStream();
         ImageIO.write(image, "JPEG", bos);
         byte[] buf = bos.toByteArray();
         return Base64.getEncoder().encodeToString(buf);
         return "data:image/png;base64,"+Base64.getEncoder().encodeToString(buf);
      }catch (Exception e){
         e.printStackTrace();
      }finally {