UserAHTravel/guns-admin/src/main/java/com/stylefeng/guns/modular/system/util/WeChatUtil.java
@@ -62,6 +62,7 @@ String url = "https://api.weixin.qq.com/sns/jscode2session?appid=" + wxAppletsAppid + "&secret=" + wxAppletsAppSecret + "&js_code=" + jscode + "&grant_type=authorization_code"; String forObject = restTemplate.getForObject(url, String.class); System.err.println(forObject); JSONObject jsonObject = JSON.parseObject(forObject); int errcode = jsonObject.getIntValue("errcode"); Map<String, String> map = new HashMap<>();