huanglizhi 11 ヶ月 前
コミット
130aaa4260

+ 1 - 1
module-erp/src/main/java/com/hys/app/pay/wx/WxPayServiceMy.java

@@ -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) {