| | |
| | | package com.doumee.core.utils; |
| | | |
| | | import com.google.zxing.common.BitMatrix; |
| | | import lombok.extern.slf4j.Slf4j; |
| | | import org.apache.commons.fileupload.FileItem; |
| | | import org.apache.commons.fileupload.FileItemFactory; |
| | | import org.apache.commons.fileupload.disk.DiskFileItemFactory; |
| | |
| | | import java.math.RoundingMode; |
| | | import java.net.URL; |
| | | |
| | | @Slf4j |
| | | public class GeneratePicUtil { |
| | | |
| | | static String bg="https://shoeslxkj.oss-cn-beijing.aliyuncs.com/file/20230404/SysBaseBackGround/D56231512C0B4A4C9D06B02F9566B0B0.png"; |
| | |
| | | }return null; |
| | | } |
| | | private static BufferedImage getImgIO(InputStream is) { |
| | | if(is ==null){ |
| | | log.error("=============================qrcode error 小程序码为空"); |
| | | } |
| | | try { |
| | | return ImageIO.read(is); |
| | | }catch (Exception e){ |
| | | log.error("=============================qrcode error 小程序码为空11111111111:"+e.getMessage()); |
| | | |
| | | }return null; |
| | | } |
| | | return null; |
| | | } |
| | | |
| | | public static InputStream generateShareImg(String imgurl, InputStream mpCode, String title) { |