🐛 #2128 【开放平台】 修复公众号在由第三方平台管理时OAuth2Service授权相关报错问题

This commit is contained in:
hywr
2021-05-24 11:34:13 +08:00
committed by GitHub
parent 01ab45bc0c
commit a2e82448b8
11 changed files with 205 additions and 6 deletions

View File

@ -14,11 +14,11 @@ public interface WxOAuth2Service {
/**
* <pre>
* 构造oauth2授权的url连接.
* 详情请见: http://mp.weixin.qq.com/wiki/index.php?title=网页授权获取用户基本信息
* 详情请见: https://developers.weixin.qq.com/doc/offiaccount/OA_Web_Apps/Wechat_webpage_authorization.html
* </pre>
*
* @param redirectUri 用户授权完成后的重定向链接无需urlencode, 方法内会进行encode
* @param scope scope
* @param scope scope,静默:snsapi_base, 带信息授权:snsapi_userinfo
* @param state state
* @return url
*/

View File

@ -0,0 +1,16 @@
package me.chanjar.weixin.common.service;
import lombok.AllArgsConstructor;
import lombok.experimental.Delegate;
/**
* 微信 oauth2服务 装饰器
*
* @author <a href="https://www.sacoc.cn">广州跨界</a>
*/
@AllArgsConstructor
public class WxOAuth2ServiceDecorator implements WxOAuth2Service {
@Delegate
private final WxOAuth2Service wxOAuth2Service;
}