Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
pms-dispatch-assistant
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
姜耀祖
pms-dispatch-assistant
Commits
05b75a64
Commit
05b75a64
authored
Apr 18, 2025
by
赵灿灿
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改配置信息
parent
3d166063
Pipeline
#21034
passed with stages
in 3 minutes and 4 seconds
Changes
4
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
13 additions
and
13 deletions
+13
-13
DecodeJWTToken.java
...ch/pms/dispatchassistant/common/utils/DecodeJWTToken.java
+6
-6
application-prod.yml
src/main/resources/application-prod.yml
+3
-3
application-uat.yml
src/main/resources/application-uat.yml
+3
-3
application.yml
src/main/resources/application.yml
+1
-1
No files found.
src/main/java/com/infoepoch/pms/dispatchassistant/common/utils/DecodeJWTToken.java
View file @
05b75a64
...
@@ -56,13 +56,13 @@ public class DecodeJWTToken {
...
@@ -56,13 +56,13 @@ public class DecodeJWTToken {
public
String
getUserName
(
HttpServletRequest
request
)
{
public
String
getUserName
(
HttpServletRequest
request
)
{
String
user
Id
=
getUserIdByDecodeToken
(
request
);
String
user
Name
=
getUserIdByDecodeToken
(
request
);
return
user
Id
;
return
user
Name
;
}
}
public
String
getUserIdByDecodeToken
(
HttpServletRequest
request
)
{
public
String
getUserIdByDecodeToken
(
HttpServletRequest
request
)
{
String
user
Id
=
null
;
String
user
Name
=
null
;
Cookie
[]
cookies
=
request
.
getCookies
();
Cookie
[]
cookies
=
request
.
getCookies
();
logger
.
info
(
"cookie = "
+
cookies
);
logger
.
info
(
"cookie = "
+
cookies
);
if
(
cookies
!=
null
&&
cookies
.
length
!=
0
)
{
if
(
cookies
!=
null
&&
cookies
.
length
!=
0
)
{
...
@@ -77,15 +77,15 @@ public class DecodeJWTToken {
...
@@ -77,15 +77,15 @@ public class DecodeJWTToken {
String
token
=
pmsWebCookie
.
getValue
();
String
token
=
pmsWebCookie
.
getValue
();
logger
.
info
(
" pms-web cookie "
+
token
);
logger
.
info
(
" pms-web cookie "
+
token
);
DecodedJWT
decodedJWT
=
verifySessionToken
(
token
,
signSecret
);
DecodedJWT
decodedJWT
=
verifySessionToken
(
token
,
signSecret
);
user
Id
=
decodedJWT
.
getClaim
(
"accountName"
).
asString
();
user
Name
=
decodedJWT
.
getClaim
(
"accountName"
).
asString
();
}
else
if
(
ObSSOCookie
!=
null
)
{
}
else
if
(
ObSSOCookie
!=
null
)
{
String
token
=
ObSSOCookie
.
getValue
();
String
token
=
ObSSOCookie
.
getValue
();
logger
.
info
(
" ObSSOCookie cookie "
+
token
);
logger
.
info
(
" ObSSOCookie cookie "
+
token
);
User
user
=
getUserByToken
(
token
);
User
user
=
getUserByToken
(
token
);
// JsonNode result = restTemplateUtils.postForLinkedMultiValueMap(keyValueStoreService.queryValueByKey(StoreKeys.PMS_API_URL), param);
// JsonNode result = restTemplateUtils.postForLinkedMultiValueMap(keyValueStoreService.queryValueByKey(StoreKeys.PMS_API_URL), param);
user
Id
=
user
.
getId
();
user
Name
=
user
.
getUsername
();
}
}
return
user
Id
;
return
user
Name
;
}
else
{
}
else
{
return
null
;
return
null
;
}
}
...
...
src/main/resources/application-prod.yml
View file @
05b75a64
...
@@ -46,10 +46,10 @@ spring:
...
@@ -46,10 +46,10 @@ spring:
datasource
:
datasource
:
driver-class-name
:
com.alipay.oceanbase.jdbc.Driver
driver-class-name
:
com.alipay.oceanbase.jdbc.Driver
type
:
com.alibaba.druid.pool.DruidDataSource
type
:
com.alibaba.druid.pool.DruidDataSource
url
:
jdbc:oceanbase://10.32.166.11:2883,10.32.166.12:2883,10.32.166.13:2883,10.32.166.14:2883,10.32.166.15:2883,10.32.166.16:2883/JSXJY
05
?continueBatchOnError=false&allowMultiQueries=true&rewriteBatchedStatements=true&loadBalanceStrategy=RANDOM
url
:
jdbc:oceanbase://10.32.166.11:2883,10.32.166.12:2883,10.32.166.13:2883,10.32.166.14:2883,10.32.166.15:2883,10.32.166.16:2883/JSXJY
10
?continueBatchOnError=false&allowMultiQueries=true&rewriteBatchedStatements=true&loadBalanceStrategy=RANDOM
#格式: 用户名@租户名#集群名
#格式: 用户名@租户名#集群名
username
:
JSXJY
05
@epmsdb#OAFCDB1
username
:
JSXJY
10
@epmsdb#OAFCDB1
password
:
o556723ss4QisC6
password
:
KMp6G9uKN6b7w5W
# driver-class-name: oracle.jdbc.driver.OracleDriver
# driver-class-name: oracle.jdbc.driver.OracleDriver
# url: jdbc:oracle:thin:@//10.32.164.15:1521/pmsdb
# url: jdbc:oracle:thin:@//10.32.164.15:1521/pmsdb
# username: dbworkflow
# username: dbworkflow
...
...
src/main/resources/application-uat.yml
View file @
05b75a64
...
@@ -30,10 +30,10 @@ spring:
...
@@ -30,10 +30,10 @@ spring:
#OB
#OB
driver-class-name
:
com.alipay.oceanbase.jdbc.Driver
driver-class-name
:
com.alipay.oceanbase.jdbc.Driver
type
:
com.alibaba.druid.pool.DruidDataSource
type
:
com.alibaba.druid.pool.DruidDataSource
url
:
jdbc:oceanbase://10.33.240.206:2883,10.33.240.207:2883/
PMS_dispatchassistant
?rewriteBatchedStatements=true
url
:
jdbc:oceanbase://10.33.240.206:2883,10.33.240.207:2883/
EXPERTPLATFORM
?rewriteBatchedStatements=true
#格式: 用户名@租户名#集群名
#格式: 用户名@租户名#集群名
username
:
PMS_dispatchassistant
@gxxjycsdb#JSGXCSDB1
username
:
EXPERTPLATFORM
@gxxjycsdb#JSGXCSDB1
password
:
PMS_dispatchassistant
password
:
Jsyd1018
druid
:
druid
:
#testWhileIdle用于在连接空闲时检查连接是否有效
#testWhileIdle用于在连接空闲时检查连接是否有效
#validationQuery是用于检查连接是否有效的SQL语句
#validationQuery是用于检查连接是否有效的SQL语句
...
...
src/main/resources/application.yml
View file @
05b75a64
...
@@ -54,7 +54,7 @@ logging:
...
@@ -54,7 +54,7 @@ logging:
file
:
file
:
name
:
/data/dispatch-assistant/log/${spring.application.name}.log
name
:
/data/dispatch-assistant/log/${spring.application.name}.log
level
:
level
:
com.infoepoch.pms.dispatchassistant
Project
:
info
com.infoepoch.pms.dispatchassistant
:
info
custom
:
custom
:
upload-file
:
upload-file
:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment