|
@@ -131,7 +131,7 @@ public class WxPayServiceMy {
|
|
|
map.put("orderId", orderId);
|
|
|
map.put("ip", ip);
|
|
|
return String.format("https://open.weixin.qq.com/connect/oauth2/authorize?appid=%s&redirect_uri=%s&response_type=code&scope=%s&state=%s#wechat_redirect",
|
|
|
- wxConfig.getAppId(), URLEncoder.encode(wxConfig.getOAuth2Url(), "UTF-8"), "snsapi_base", orderId+"--"+ip);
|
|
|
+ wxConfig.getAppId(), URLEncoder.encode(wxConfig.getOAuth2Url(), "UTF-8"), "snsapi_userinfo", orderId+"--"+ip);
|
|
|
}
|
|
|
|
|
|
public String getOpenId(String code) {
|