Pu Zhibing
2024-09-23 e49f212c5ae9c5382386ddc0d34e346799720116
ruoyi-auth/src/main/java/com/ruoyi/auth/config/QywxInnerConfig.java
@@ -129,7 +129,7 @@
    // H5应用
    //scope   是   应用授权作用域。企业自建应用固定填写:snsapi_base
    // https://open.work.weixin.qq.com/api/doc/90000/90135/91020
    private String oauthUrl = "https://open.weixin.qq.com/connect/oauth2/authorize?appid=%s&redirect_uri=%s&response_type=code&scope=snsapi_privateinfo&agentid=%s&state=%s#wechat_redirect";
    private String oauthUrl = "https://open.weixin.qq.com/connect/oauth2/authorize?appid=%s&redirect_uri=%s&response_type=code&scope=snsapi_privateinfo&agentid=%s&connect_redirect=1&state=%s#wechat_redirect";
    //https://open.work.weixin.qq.com/api/doc/90000/90135/91023
    private String oauthUserUrl = baseUrl+"user/getuserinfo?access_token=%s&code=%s";