扫码登录
This commit is contained in:
parent
d261fbd144
commit
ef39341f86
|
|
@ -158,7 +158,7 @@ public class SystemLoginServiceImpl implements ISystemLoginService {
|
||||||
*/
|
*/
|
||||||
@Override
|
@Override
|
||||||
public void logout(String token) {
|
public void logout(String token) {
|
||||||
//RedisUtil.del(AdminConfig.backstageTokenKey + token);
|
// RedisUtil.del(AdminConfig.backstageTokenKey + token);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
||||||
|
|
@ -58,7 +58,7 @@ public class LoginServiceImpl implements ILoginService {
|
||||||
* 注册账号
|
* 注册账号
|
||||||
*
|
*
|
||||||
* @author fzr
|
* @author fzr
|
||||||
* @param username 账号
|
* @param account 账号
|
||||||
* @param password 密码
|
* @param password 密码
|
||||||
* @param terminal 总端
|
* @param terminal 总端
|
||||||
*/
|
*/
|
||||||
|
|
@ -93,8 +93,6 @@ public class LoginServiceImpl implements ILoginService {
|
||||||
* 账号登录
|
* 账号登录
|
||||||
*
|
*
|
||||||
* @author fzr
|
* @author fzr
|
||||||
* @param account 账号
|
|
||||||
* @param password 密码
|
|
||||||
* @return LoginTokenVo
|
* @return LoginTokenVo
|
||||||
*/
|
*/
|
||||||
@Override
|
@Override
|
||||||
|
|
@ -243,7 +241,7 @@ public class LoginServiceImpl implements ILoginService {
|
||||||
@Override
|
@Override
|
||||||
public String scanCodeUrl(String url, HttpSession session) {
|
public String scanCodeUrl(String url, HttpSession session) {
|
||||||
// 获取AppId
|
// 获取AppId
|
||||||
String appId = ConfigUtils.get("oa_setting", "app_id", "");
|
String appId = ConfigUtils.get("open_platform", "app_id", "");
|
||||||
|
|
||||||
// 微信开放平台授权
|
// 微信开放平台授权
|
||||||
String baseUrl = "https://open.weixin.qq.com/connect/qrconnect" +
|
String baseUrl = "https://open.weixin.qq.com/connect/qrconnect" +
|
||||||
|
|
@ -290,8 +288,8 @@ public class LoginServiceImpl implements ILoginService {
|
||||||
}
|
}
|
||||||
|
|
||||||
// 得到配置和授权临时票据code
|
// 得到配置和授权临时票据code
|
||||||
String appId = ConfigUtils.get("oa_setting", "app_id", "");
|
String appId = ConfigUtils.get("open_platform", "app_id", "");
|
||||||
String appSecret = ConfigUtils.get("oa_setting", "app_secret", "");
|
String appSecret = ConfigUtils.get("open_platform", "app_secret", "");
|
||||||
|
|
||||||
//向认证服务器发送请求换取access_token
|
//向认证服务器发送请求换取access_token
|
||||||
String baseAccessTokenUrl = "https://api.weixin.qq.com/sns/oauth2/access_token" +
|
String baseAccessTokenUrl = "https://api.weixin.qq.com/sns/oauth2/access_token" +
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue