功能完善

This commit is contained in:
bns_han 2024-01-10 16:44:55 +08:00
parent 49320db995
commit 80cf8d68de
2 changed files with 2 additions and 2 deletions

View File

@ -57,7 +57,7 @@ public class TokenController
if (StringUtils.isNotNull(loginUser)) { if (StringUtils.isNotNull(loginUser)) {
// 创建token // 创建token
Map<String, Object> tokenMap = tokenService.createToken(loginUser); Map<String, Object> tokenMap = tokenService.createToken(loginUser);
return R.ok(loginUser); return R.ok(tokenService.createToken(loginUser));
} else { } else {
return R.fail(null, "验证码错误"); return R.fail(null, "验证码错误");
} }

View File

@ -27,7 +27,7 @@ import reactor.core.publisher.Flux;
@Component @Component
public class ValidateCodeFilter extends AbstractGatewayFilterFactory<Object> public class ValidateCodeFilter extends AbstractGatewayFilterFactory<Object>
{ {
private final static String[] VALIDATE_URL = new String[] { "/auth/login","/auth/sendCode","/auth/checkCode", "/auth/register" }; private final static String[] VALIDATE_URL = new String[] { "/auth/login", "/auth/register" };
@Autowired @Autowired
private ValidateCodeService validateCodeService; private ValidateCodeService validateCodeService;