|
@@ -47,7 +47,7 @@ public class WxLoginController {
|
|
|
@CrossOrigin(value = "https://open.weixin.qq.com/")
|
|
|
@GetMapping("/menuOauth")
|
|
|
public void menuOauth(HttpServletResponse response) throws IOException {
|
|
|
- String path = http + "/wxLogin/callback?";
|
|
|
+ String path = "http://szwltest.sunzee.com.cn/SZWL-SERVER/wxLogin/callback?";
|
|
|
|
|
|
try {
|
|
|
path = URLEncoder.encode(path, "UTF-8");
|
|
@@ -56,7 +56,7 @@ public class WxLoginController {
|
|
|
}
|
|
|
// 第一步:用户同意授权,获取code
|
|
|
// 静默授权,只能获取用户openid
|
|
|
- String url = "https://open.weixin.qq.com/connect/oauth2/authorize?"
|
|
|
+ String url = "http://szwltest.sunzee.com.cn/openWeixin/connect/oauth2/authorize?"
|
|
|
+ "appid=" + appid
|
|
|
+ "&redirect_uri=" + path
|
|
|
+ "&response_type=code"
|