ソースを参照

#966 修复开放平台移动端快速授权链接中的错误字符

master
Binary Wang 5年前
コミット
c40c6c5797
2個のファイルの変更4行の追加1行の削除
  1. +1
    -1
      weixin-java-open/src/main/java/me/chanjar/weixin/open/api/WxOpenComponentService.java
  2. +3
    -0
      weixin-java-open/src/main/java/me/chanjar/weixin/open/api/impl/WxOpenComponentServiceImpl.java

+ 1
- 1
weixin-java-open/src/main/java/me/chanjar/weixin/open/api/WxOpenComponentService.java ファイルの表示

@@ -31,7 +31,7 @@ public interface WxOpenComponentService {
/**
* 手机端打开授权链接
*/
String COMPONENT_MOBILE_LOGIN_PAGE_URL = "https://mp.weixin.qq.com/safe/bindcomponent?action=bindcomponent&no_scan=1&auth_type=3&component_appid=%s&pre_auth_code=%s&redirect_uri=%s&auth_type=xxx&biz_appid=xxx$#wechat_redirect";
String COMPONENT_MOBILE_LOGIN_PAGE_URL = "https://mp.weixin.qq.com/safe/bindcomponent?action=bindcomponent&no_scan=1&auth_type=3&component_appid=%s&pre_auth_code=%s&redirect_uri=%s&auth_type=xxx&biz_appid=xxx#wechat_redirect";
String CONNECT_OAUTH2_AUTHORIZE_URL = "https://open.weixin.qq.com/connect/oauth2/authorize?appid=%s&redirect_uri=%s&response_type=code&scope=%s&state=%s&component_appid=%s#wechat_redirect";

/**


+ 3
- 0
weixin-java-open/src/main/java/me/chanjar/weixin/open/api/impl/WxOpenComponentServiceImpl.java ファイルの表示

@@ -196,14 +196,17 @@ public class WxOpenComponentServiceImpl implements WxOpenComponentService {
return getPreAuthUrl(redirectURI, null, null);
}

@Override
public String getPreAuthUrl(String redirectURI, String authType, String bizAppid) throws WxErrorException {
return createPreAuthUrl(redirectURI, authType, bizAppid, false);
}

@Override
public String getMobilePreAuthUrl(String redirectURI) throws WxErrorException {
return getMobilePreAuthUrl(redirectURI, null, null);
}

@Override
public String getMobilePreAuthUrl(String redirectURI, String authType, String bizAppid) throws WxErrorException {
return createPreAuthUrl(redirectURI, authType, bizAppid, true);
}


読み込み中…
キャンセル
保存