Browse Source

设备码生成

LuoDLeo 2 months ago
parent
commit
afba39158f

+ 1 - 1
src/main/java/org/springblade/modules/api/controller/ApiFacilityController.java

@@ -223,7 +223,7 @@ public class ApiFacilityController extends BaseController {
         QrConfig qrConfig = new QrConfig();
         qrConfig.setWidth(600);
         qrConfig.setHeight(600);
-        QrCodeUtil.generate(domainUrl + "?qrcode=" + id,qrConfig, "jpg", osOut);
+        QrCodeUtil.generate(domainUrl + "?deviceId=" + id,qrConfig, "jpg", osOut);
         osOut.close();
     }
 

+ 1 - 1
src/main/java/org/springblade/modules/business/controller/FacilityController.java

@@ -175,7 +175,7 @@ public class FacilityController extends BladeController {
         QrConfig qrConfig = new QrConfig();
         qrConfig.setWidth(600);
         qrConfig.setHeight(600);
-        QrCodeUtil.generate(domainUrl + "?qrcode=" + id,qrConfig, "jpg", osOut);
+        QrCodeUtil.generate(domainUrl + "?deviceId=" + id,qrConfig, "jpg", osOut);
 		osOut.close();
 	}
 

+ 1 - 1
src/main/resources/application-prod.yml

@@ -174,4 +174,4 @@ captcha:
   length: 5
 
 qrCode:
-  domainUrl: "https://sellwine.csshsh.com"
+  domainUrl: "https://sellwine.csshsh.com/qrcode/"