|
|
|
@ -24,7 +24,7 @@ public class WXController { |
|
|
|
|
@PostMapping("/getUserInformation") |
|
|
|
|
public ServerResponse getUserInformation(@RequestBody Map<String, Object> map) { |
|
|
|
|
String code = StringUtils.isBlank(map.get("code") + "") ? "" : map.get("code") + ""; |
|
|
|
|
String url = "https://api.weixin.qq.com/sns/jscode2session?appid=wxe705d9b6caa89668&secret=7de82bf3dac8602180c1e57e023a741b&js_code=" + code + "&grant_type=authorization_code"; |
|
|
|
|
String url = "https://api.weixin.qq.com/sns/jscode2session?appid=wxdad89d17cba4bf1c&secret=fd849acc250fb96b7e27cae1265b0c34&js_code=" + code + "&grant_type=authorization_code"; |
|
|
|
|
String result = HttpUtil.doGet(url); |
|
|
|
|
return ServerResponse.createBySuccessMessage(result); |
|
|
|
|
} |
|
|
|
|