config(env): 更新环境配置和数据库连接信息
- 将默认激活环境从 ysb2 切换到 glt2 - 更新 glt2 环境的数据源配置,包括数据库名称、用户名和密码 - 修改 glt3 环境的 Redis 配置,更新数据库编号、主机地址、端口和密码 - 将微信登录控制器中的默认租户ID从 10550 更改为 10584
This commit is contained in:
@@ -686,7 +686,7 @@ public class WxLoginController extends BaseController {
|
|||||||
// 获取当前线程的租户ID
|
// 获取当前线程的租户ID
|
||||||
Integer tenantId = getTenantId();
|
Integer tenantId = getTenantId();
|
||||||
if (tenantId == null) {
|
if (tenantId == null) {
|
||||||
tenantId = 10550; // 默认租户
|
tenantId = 10584; // 默认租户
|
||||||
}
|
}
|
||||||
|
|
||||||
System.out.println("=== 开始调试获取AccessToken,租户ID: " + tenantId + " ===");
|
System.out.println("=== 开始调试获取AccessToken,租户ID: " + tenantId + " ===");
|
||||||
@@ -748,14 +748,14 @@ public class WxLoginController extends BaseController {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// 如果无法解析,默认使用租户10550
|
// 如果无法解析,默认使用租户10584
|
||||||
System.out.println("无法解析scene参数,使用默认租户ID: 10550");
|
System.out.println("无法解析scene参数,使用默认租户ID: 10584");
|
||||||
return 10550;
|
return 10584;
|
||||||
|
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
System.err.println("解析scene参数异常: " + e.getMessage());
|
System.err.println("解析scene参数异常: " + e.getMessage());
|
||||||
// 出现异常时,默认使用租户10550
|
// 出现异常时,默认使用租户10584
|
||||||
return 10550;
|
return 10584;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -7,9 +7,9 @@ server:
|
|||||||
# 数据源配置
|
# 数据源配置
|
||||||
spring:
|
spring:
|
||||||
datasource:
|
datasource:
|
||||||
url: jdbc:mysql://8.134.55.105:13306/gltdb?useUnicode=true&characterEncoding=utf8&useSSL=false&serverTimezone=GMT%2B8
|
url: jdbc:mysql://8.134.55.105:13306/modules?useUnicode=true&characterEncoding=utf8&useSSL=false&serverTimezone=GMT%2B8
|
||||||
username: gltdb
|
username: modules
|
||||||
password: EeD4FtzyA5ksj7Bk
|
password: tYmmMGh5wpwXR3ae
|
||||||
driver-class-name: com.mysql.cj.jdbc.Driver
|
driver-class-name: com.mysql.cj.jdbc.Driver
|
||||||
type: com.alibaba.druid.pool.DruidDataSource
|
type: com.alibaba.druid.pool.DruidDataSource
|
||||||
|
|
||||||
|
|||||||
@@ -14,10 +14,10 @@ spring:
|
|||||||
|
|
||||||
# redis
|
# redis
|
||||||
redis:
|
redis:
|
||||||
database: 3
|
database: 0
|
||||||
host: 1Panel-redis-GmNr
|
host: 47.119.165.234
|
||||||
port: 6379
|
port: 16379
|
||||||
password: redis_t74P8C
|
password: redis_WSDb88
|
||||||
|
|
||||||
# 日志配置
|
# 日志配置
|
||||||
logging:
|
logging:
|
||||||
|
|||||||
@@ -4,7 +4,7 @@ server:
|
|||||||
# 多环境配置
|
# 多环境配置
|
||||||
spring:
|
spring:
|
||||||
profiles:
|
profiles:
|
||||||
active: ysb2
|
active: glt2
|
||||||
|
|
||||||
application:
|
application:
|
||||||
name: server
|
name: server
|
||||||
|
|||||||
Reference in New Issue
Block a user