fix:登录相关逻辑修复

This commit is contained in:
2025-06-02 00:31:47 +08:00
parent 9b7fa58fcf
commit 44f4745b70
20 changed files with 206 additions and 194 deletions
@@ -7,10 +7,10 @@ import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
/**
/**
* @author zlt
*/
@EnableFeignClients(basePackages = {"com.central", "com.zlt.wechat.feign"})
@EnableFeignClients(basePackages = {"com.central"})
@MapperScan(basePackages = "com.central.oauth.mapper")
@EnableFeignInterceptor
@EnableDiscoveryClient
@@ -1,6 +1,6 @@
package com.central.oauth.service;
import com.zlt.wechat.entity.WechatConfig;
import com.central.wechat.wechat.entity.WechatConfig;
import org.springframework.security.core.userdetails.UserDetails;
import org.springframework.security.core.userdetails.UserDetailsService;
import org.springframework.security.core.userdetails.UsernameNotFoundException;
@@ -5,8 +5,8 @@ import com.central.common.feign.UserService;
import com.central.common.model.SysUser;
import com.central.common.utils.LoginUserUtils;
import com.central.oauth.service.ZltUserDetailsService;
import com.zlt.wechat.entity.WechatConfig;
import com.zlt.wechat.feign.WechatConfigService;
import com.central.wechat.wechat.entity.WechatConfig;
import com.central.wechat.wechat.feign.WechatConfigService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.security.authentication.DisabledException;
import org.springframework.security.authentication.InternalAuthenticationServiceException;
@@ -64,8 +64,7 @@ public class UserDetailServiceImpl implements ZltUserDetailsService {
@Override
public WechatConfig loadMiniAppConfig(String appId) {
// return wechatConfigService.getConfig(appId);
return null;
return wechatConfigService.getConfigByAppId(appId);
}
@Override
@@ -6,8 +6,8 @@ import com.central.oauth.service.impl.UserDetailServiceFactory;
import com.central.oauth.support.base.BaseAuthenticationProvider;
import com.central.oauth2.common.properties.SecurityProperties;
import com.central.oauth2.common.token.TencentAuthenticationToken;
import com.central.wechat.wechat.entity.WechatConfig;
import com.fasterxml.jackson.databind.ObjectMapper;
import com.zlt.wechat.entity.WechatConfig;
import lombok.Getter;
import lombok.Setter;
import lombok.extern.slf4j.Slf4j;