|
@@ -128,7 +128,7 @@ public class LoginController {
|
|
|
public String wechatLogin(@RequestParam(name = "js_code")String js_code){
|
|
|
String URL = "https://api.weixin.qq.com/sns/jscode2session";
|
|
|
String appid = "wx707fcfd7d09e02eb";
|
|
|
- String secret = "f932c54f1cbd427b10218a0d1cfb88bf";
|
|
|
+ String secret = "cf69d556bbc962fa60a59b0fece3fa95";
|
|
|
String grant_type = "authorization_code";
|
|
|
|
|
|
String forObject = restTemplate.getForObject(URL + "?appid=" + appid + "&secret=" + secret + "&grant_type=" + grant_type + "&js_code=" + js_code, String.class);
|