浏览代码

fix 扫码

he2802 3 年之前
父节点
当前提交
bb930b1abb

+ 2 - 2
zhongzheng-framework/src/main/java/com/zhongzheng/framework/web/service/WxLoginService.java

@@ -113,11 +113,11 @@ public class WxLoginService
     public Map<String,Object> pcLoginUrl(){
         String scanCode = ToolsUtils.getCharAndNumr(6);
         String key = "SCAN_LOGIN_"+scanCode;
-        String code_url = scanLoginHost+"pc/login/"+scanCode;
+        String codeUrl = scanLoginHost+"pc/login/"+scanCode;
         String urlBase64 = null;
         try {
             QRCodeWriter qrCodeWriter = new QRCodeWriter();
-            BitMatrix bitMatrix = qrCodeWriter.encode(code_url, BarcodeFormat.QR_CODE, 120, 120);
+            BitMatrix bitMatrix = qrCodeWriter.encode(codeUrl, BarcodeFormat.QR_CODE, 120, 120);
             // 写到输出流
             ByteArrayOutputStream outputStream = new ByteArrayOutputStream();
             MatrixToImageWriter.writeToStream(bitMatrix, "jpg", outputStream);