Commit cc0802d8 by Wangmin

修改公众号appId

parent 49806c7c
...@@ -86,7 +86,7 @@ public class WechatLoginController extends BaseController { ...@@ -86,7 +86,7 @@ public class WechatLoginController extends BaseController {
@SaIgnore @SaIgnore
@GetMapping("wxopenid") @GetMapping("wxopenid")
public void wxopenid(String userId, String code, String state, HttpServletResponse response) throws IOException { public void wxopenid(String userId, String code, String state, HttpServletResponse response) throws IOException {
String url = "https://api.weixin.qq.com/sns/oauth2/access_token?appid=wx6cc2fd1bca9472ae&secret=2edf95828b1a19fc5149f6650cde71f1&code=" + code String url = "https://api.weixin.qq.com/sns/oauth2/access_token?appid=wxab851ed88308824f&secret=9a548dfb2c497fd73ed92ed34e5f4242&code=" + code
+ "&grant_type=authorization_code"; + "&grant_type=authorization_code";
RestTemplate restTemplate = new RestTemplate(); RestTemplate restTemplate = new RestTemplate();
String result = restTemplate.getForObject(url, String.class); String result = restTemplate.getForObject(url, String.class);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment