微信-公众号登录,还原内容
This commit is contained in:
parent
72f63e7e31
commit
256f2ba480
@ -13,7 +13,7 @@ public enum ConnectAuthEnum implements ConnectAuth {
|
|||||||
/**
|
/**
|
||||||
* 微信公众号登录
|
* 微信公众号登录
|
||||||
*/
|
*/
|
||||||
WECHAT_WAP {
|
WECHAT {
|
||||||
@Override
|
@Override
|
||||||
public String authorize() {
|
public String authorize() {
|
||||||
return "https://open.weixin.qq.com/connect/oauth2/authorize";
|
return "https://open.weixin.qq.com/connect/oauth2/authorize";
|
||||||
|
@ -26,7 +26,7 @@ import com.alibaba.fastjson.JSONObject;
|
|||||||
*/
|
*/
|
||||||
public class BaseAuthWeChatRequest extends BaseAuthRequest {
|
public class BaseAuthWeChatRequest extends BaseAuthRequest {
|
||||||
public BaseAuthWeChatRequest(AuthConfig config, Cache cache) {
|
public BaseAuthWeChatRequest(AuthConfig config, Cache cache) {
|
||||||
super(config, ConnectAuthEnum.WECHAT_WAP, cache);
|
super(config, ConnectAuthEnum.WECHAT, cache);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -147,7 +147,7 @@ public class ConnectUtil {
|
|||||||
}
|
}
|
||||||
AuthRequest authRequest = null;
|
AuthRequest authRequest = null;
|
||||||
switch (authInterface) {
|
switch (authInterface) {
|
||||||
case WECHAT_WAP: {
|
case WECHAT: {
|
||||||
//寻找配置
|
//寻找配置
|
||||||
Setting setting = settingService.get(SettingEnum.WECHAT_CONNECT.name());
|
Setting setting = settingService.get(SettingEnum.WECHAT_CONNECT.name());
|
||||||
WechatConnectSetting wechatConnectSetting = JSONUtil.toBean(setting.getSettingValue(), WechatConnectSetting.class);
|
WechatConnectSetting wechatConnectSetting = JSONUtil.toBean(setting.getSettingValue(), WechatConnectSetting.class);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user