---------

This commit is contained in:
2025-08-20 10:40:00 +08:00
parent f189f53b2c
commit 64c1f2bf9a

View File

@ -121,7 +121,6 @@ public class WechatGetQrcodeServiceImpl implements WechatGetQrcodeService {
param.put("page", "pages/loginModule/register/register"); param.put("page", "pages/loginModule/register/register");
param.put("scene", inviteCode + "=" + userRoleEnum.getValue()); param.put("scene", inviteCode + "=" + userRoleEnum.getValue());
param.put("width", 430); param.put("width", 430);
param.put("check_path", false);
param.put("env_version", "develop"); param.put("env_version", "develop");
String url = "https://api.weixin.qq.com/wxa/getwxacodeunlimit?access_token=" + accessToken; String url = "https://api.weixin.qq.com/wxa/getwxacodeunlimit?access_token=" + accessToken;
String jsonParams = JSONUtil.toJsonStr(param); String jsonParams = JSONUtil.toJsonStr(param);
@ -131,7 +130,6 @@ public class WechatGetQrcodeServiceImpl implements WechatGetQrcodeService {
.execute() .execute()
.bodyBytes(); .bodyBytes();
System.out.println(Arrays.toString(responseBytes));
// 将二维码数据转换为 BufferedImage // 将二维码数据转换为 BufferedImage
BufferedImage qrImage = ImageIO.read(new ByteArrayInputStream(responseBytes)); BufferedImage qrImage = ImageIO.read(new ByteArrayInputStream(responseBytes));
// // 获取用户头像 // // 获取用户头像