master
fanghao 2024-04-12 15:48:13 +08:00
parent 813f5bdef8
commit fba688b503
10 changed files with 18 additions and 21 deletions

View File

@ -71,11 +71,9 @@ public class SysLoginService {
recordLogService.recordLogininfor(username, Constants.LOGIN_FAIL, "登录用户不存在"); recordLogService.recordLogininfor(username, Constants.LOGIN_FAIL, "登录用户不存在");
throw new ServiceException("登录用户:" + username + " 不存在"); throw new ServiceException("登录用户:" + username + " 不存在");
} }
if (Result.FAIL == userResult.getCode()) { if (Result.FAIL == userResult.getCode()) {
throw new ServiceException(userResult.getMsg()); throw new ServiceException(userResult.getMsg());
} }
LoginUser userInfo = userResult.getData(); LoginUser userInfo = userResult.getData();
SysUser user = userResult.getData().getSysUser(); SysUser user = userResult.getData().getSysUser();
if (UserStatus.DELETED.getCode().equals(user.getDelFlag())) { if (UserStatus.DELETED.getCode().equals(user.getDelFlag())) {

View File

@ -14,10 +14,10 @@ spring:
nacos: nacos:
discovery: discovery:
# 服务注册地址 # 服务注册地址
server-addr: 124.221.192.127:8848 server-addr: 124.220.234.177:8848
config: config:
# 配置中心地址 # 配置中心地址
server-addr: 124.221.192.127:8848 server-addr: 124.220.234.177:8848
# 配置文件格式 # 配置文件格式
file-extension: yml file-extension: yml
# 共享配置 # 共享配置

View File

@ -58,7 +58,6 @@ public class LogAspect {
public void boBefore (JoinPoint joinPoint, Log controllerLog) { public void boBefore (JoinPoint joinPoint, Log controllerLog) {
TIME_THREADLOCAL.set(System.currentTimeMillis()); TIME_THREADLOCAL.set(System.currentTimeMillis());
} }
/** /**
* *
* *

View File

@ -14,10 +14,10 @@ spring:
nacos: nacos:
discovery: discovery:
# 服务注册地址 # 服务注册地址
server-addr: 124.221.192.127:8848 server-addr: 124.220.234.177:8848
config: config:
# 配置中心地址 # 配置中心地址
server-addr: 124.221.192.127:8848 server-addr: 124.220.234.177:8848
# 配置文件格式 # 配置文件格式
file-extension: yml file-extension: yml
# 共享配置 # 共享配置
@ -28,12 +28,12 @@ spring:
eager: true eager: true
transport: transport:
# 控制台地址 # 控制台地址
dashboard: 124.221.192.127:8718 dashboard: 124.220.234.177:8848
# nacos配置持久化 # nacos配置持久化
datasource: datasource:
ds1: ds1:
nacos: nacos:
server-addr: 124.221.192.127:8848 server-addr: 124.220.234.177:8848
dataId: sentinel-muyu-gateway dataId: sentinel-muyu-gateway
groupId: DEFAULT_GROUP groupId: DEFAULT_GROUP
data-type: json data-type: json

View File

@ -14,10 +14,10 @@ spring:
nacos: nacos:
discovery: discovery:
# 服务注册地址 # 服务注册地址
server-addr: 124.221.192.127:8848 server-addr: 124.220.234.177:8848
config: config:
# 配置中心地址 # 配置中心地址
server-addr: 124.221.192.127:8848 server-addr: 124.220.234.177:8848
# 配置文件格式 # 配置文件格式
file-extension: yml file-extension: yml
# 共享配置 # 共享配置

View File

@ -14,10 +14,10 @@ spring:
nacos: nacos:
discovery: discovery:
# 服务注册地址 # 服务注册地址
server-addr: 124.221.192.127:8848 server-addr: 124.220.234.177:8848
config: config:
# 配置中心地址 # 配置中心地址
server-addr: 124.221.192.127:8848 server-addr: 124.220.234.177:8848
# 配置文件格式 # 配置文件格式
file-extension: yml file-extension: yml
# 共享配置 # 共享配置

View File

@ -14,10 +14,10 @@ spring:
nacos: nacos:
discovery: discovery:
# 服务注册地址 # 服务注册地址
server-addr: 124.221.192.127:8848 server-addr: 124.220.234.177:8848
config: config:
# 配置中心地址 # 配置中心地址
server-addr: 124.221.192.127:8848 server-addr: 124.220.234.177:8848
# 配置文件格式 # 配置文件格式
file-extension: yml file-extension: yml
# 共享配置 # 共享配置

View File

@ -30,7 +30,7 @@ public class SysPermissionServiceImpl implements SysPermissionService {
/** /**
* *
* *
* @param userId Id * @param
* *
* @return * @return
*/ */

View File

@ -14,10 +14,10 @@ spring:
nacos: nacos:
discovery: discovery:
# 服务注册地址 # 服务注册地址
server-addr: 124.221.192.127:8848 server-addr: 124.220.234.177:8848
config: config:
# 配置中心地址 # 配置中心地址
server-addr: 124.221.192.127:8848 server-addr: 124.220.234.177:8848
# 配置文件格式 # 配置文件格式
file-extension: yml file-extension: yml
# 共享配置 # 共享配置

View File

@ -1,6 +1,6 @@
# Tomcat # Tomcat
server: server:
port: 9100 port: 9001
# Spring # Spring
spring: spring:
@ -14,10 +14,10 @@ spring:
nacos: nacos:
discovery: discovery:
# 服务注册地址 # 服务注册地址
server-addr: 124.221.192.127:8848 server-addr: 124.220.234.177:8848
config: config:
# 配置中心地址 # 配置中心地址
server-addr: 124.221.192.127:8848 server-addr: 124.220.234.177:8848
# 配置文件格式 # 配置文件格式
file-extension: yml file-extension: yml
# 共享配置 # 共享配置