fix(config): 开放PK接口白名单并更新生产配置
将 /pk/pkListForPython、/pk/insertPkDetail、/pk/updatePkRecordInfo 加入 Sa-Token 放行列表,解决 Python 服务调用鉴权失败问题;同时迁移并修正 application-prod.yml 文件名及数据库/Redis 连接信息,确保生产环境连通性。
This commit is contained in:
@@ -59,7 +59,10 @@ public class SaTokenConfigure implements WebMvcConfigurer {
|
|||||||
"/user/inputUserInfo",
|
"/user/inputUserInfo",
|
||||||
"/user/resetPassword",
|
"/user/resetPassword",
|
||||||
"/pk/pkList",
|
"/pk/pkList",
|
||||||
"/systemMessage/list"
|
"/systemMessage/list",
|
||||||
|
"/pk/pkListForPython",
|
||||||
|
"/pk/insertPkDetail",
|
||||||
|
"/pk/updatePkRecordInfo"
|
||||||
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -3,14 +3,13 @@
|
|||||||
spring:
|
spring:
|
||||||
datasource:
|
datasource:
|
||||||
driver-class-name: com.mysql.cj.jdbc.Driver
|
driver-class-name: com.mysql.cj.jdbc.Driver
|
||||||
|
url: jdbc:mysql://47.79.98.113:3326/ruoyi-vue-pro?useSSL=false&serverTimezone=Asia/Shanghai&allowPublicKeyRetrieval=true&nullCatalogMeansCurrent=true&rewriteBatchedStatements=true
|
||||||
username: root
|
username: root
|
||||||
password: niu995228
|
password: wfn53400
|
||||||
url: jdbc:mysql://49.235.115.212:3336/vv_assistant
|
|
||||||
|
|
||||||
|
|
||||||
redis:
|
redis:
|
||||||
database: 1
|
database: 1
|
||||||
host: localhost
|
host: 47.79.98.113
|
||||||
port: 16379
|
port: 16379
|
||||||
timeout: 5000
|
timeout: 5000
|
||||||
password: ezyPM2UQkPO8O6i8s9
|
password: ezyPM2UQkPO8O6i8s9
|
||||||
Reference in New Issue
Block a user