|
|
@@ -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);
|