扫码登录

This commit is contained in:
pan.wl.2 2024-11-08 17:41:08 +08:00
parent d261fbd144
commit ef39341f86
2 changed files with 5 additions and 7 deletions

View File

@ -158,7 +158,7 @@ public class SystemLoginServiceImpl implements ISystemLoginService {
*/
@Override
public void logout(String token) {
//RedisUtil.del(AdminConfig.backstageTokenKey + token);
// RedisUtil.del(AdminConfig.backstageTokenKey + token);
}
/**

View File

@ -58,7 +58,7 @@ public class LoginServiceImpl implements ILoginService {
* 注册账号
*
* @author fzr
* @param username 账号
* @param account 账号
* @param password 密码
* @param terminal 总端
*/
@ -93,8 +93,6 @@ public class LoginServiceImpl implements ILoginService {
* 账号登录
*
* @author fzr
* @param account 账号
* @param password 密码
* @return LoginTokenVo
*/
@Override
@ -243,7 +241,7 @@ public class LoginServiceImpl implements ILoginService {
@Override
public String scanCodeUrl(String url, HttpSession session) {
// 获取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" +
@ -290,8 +288,8 @@ public class LoginServiceImpl implements ILoginService {
}
// 得到配置和授权临时票据code
String appId = ConfigUtils.get("oa_setting", "app_id", "");
String appSecret = ConfigUtils.get("oa_setting", "app_secret", "");
String appId = ConfigUtils.get("open_platform", "app_id", "");
String appSecret = ConfigUtils.get("open_platform", "app_secret", "");
//向认证服务器发送请求换取access_token
String baseAccessTokenUrl = "https://api.weixin.qq.com/sns/oauth2/access_token" +