|
@@ -129,7 +129,7 @@ public class WxPayServiceMy {
|
|
|
|
|
|
public String getOpenIdCode(Long userId, String ip) throws UnsupportedEncodingException {
|
|
public String getOpenIdCode(Long userId, String ip) throws UnsupportedEncodingException {
|
|
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",
|
|
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_userinfo", userId);
|
|
|
|
|
|
+ wxConfig.getAppId(), URLEncoder.encode(wxConfig.getOAuth2Url(), "UTF-8"), "snsapi_base", userId);
|
|
}
|
|
}
|
|
|
|
|
|
public String getOpenId(String code) {
|
|
public String getOpenId(String code) {
|