huanglizhi před 11 měsíci
rodič
revize
49a21fbccf

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

@@ -129,7 +129,7 @@ public class WxPayServiceMy {
 
     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",
-                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) {