소스 검색

fix 设置二维码地址

tjf 3 년 전
부모
커밋
9ec94bb0ff

+ 1 - 1
ruoyi-common/src/main/java/com/ruoyi/common/config/RuoYiConfig.java

@@ -138,6 +138,6 @@ public class RuoYiConfig
      */
     public static String getUploadQrPath()
     {
-        return getProfile() + "/qrUpload";
+        return  "/profile/qrUpload";
     }
 }

+ 1 - 1
ruoyi-common/src/main/java/com/ruoyi/common/utils/QRCodeUtils.java

@@ -128,7 +128,7 @@ public class QRCodeUtils {
                                 boolean needCompress) throws Exception {
         BufferedImage image = QRCodeUtils.createImage(content, imgPath,
                 needCompress);
-        destPath = DateUtils.datePath() + "/" + destPath;
+        destPath = destPath+"/" +DateUtils.datePath();
         mkdirs(destPath);
         String file = UUID.randomUUID() + ".jpg";
         File fileQR = new File(destPath + "/" + file);