mirror of
https://gitee.com/binary/weixin-java-tools.git
synced 2025-10-30 01:58:23 +08:00
🐛 #2128 【开放平台】 修复公众号在由第三方平台管理时OAuth2Service授权相关报错问题
This commit is contained in:
@ -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
|
||||
*/
|
||||
|
||||
@ -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;
|
||||
}
|
||||
Reference in New Issue
Block a user