Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
liyeyun-user-web
Project
Project
Details
Activity
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
cfld-backend
liyeyun-user-web
Commits
6d479e1b
Commit
6d479e1b
authored
Dec 19, 2023
by
zhouxudong
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/master'
parents
097046c4
024b4d10
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
5 deletions
+5
-5
Signterceptor.java
src/main/java/com/lyy/user/config/auth/Signterceptor.java
+4
-4
application-prod.yml
src/main/resources/application-prod.yml
+1
-1
No files found.
src/main/java/com/lyy/user/config/auth/Signterceptor.java
View file @
6d479e1b
...
@@ -58,10 +58,10 @@ public class Signterceptor implements AsyncHandlerInterceptor {
...
@@ -58,10 +58,10 @@ public class Signterceptor implements AsyncHandlerInterceptor {
Object
time
=
map
.
get
(
"time"
);
Object
time
=
map
.
get
(
"time"
);
DateTime
sendTime
=
DateUtil
.
date
(
Long
.
parseLong
(
time
.
toString
()));
DateTime
sendTime
=
DateUtil
.
date
(
Long
.
parseLong
(
time
.
toString
()));
long
between
=
DateUtil
.
between
(
sendTime
,
DateUtil
.
date
(),
DateUnit
.
SECOND
);
long
between
=
DateUtil
.
between
(
sendTime
,
DateUtil
.
date
(),
DateUnit
.
SECOND
);
if
(
between
>
10
)
{
//
if (between > 10) {
log
.
error
(
"签名时间超时,请重试:{}"
,
between
);
//
log.error("签名时间超时,请重试:{}", between);
throw
new
ServiceException
(
"签名时间超时,请重试"
);
//
throw new ServiceException("签名时间超时,请重试");
}
//
}
log
.
info
(
"签名通过"
);
log
.
info
(
"签名通过"
);
}
catch
(
Exception
e
)
{
}
catch
(
Exception
e
)
{
log
.
error
(
"签名有误,请重试:{},异常信息:{}"
,
sign
,
e
);
log
.
error
(
"签名有误,请重试:{},异常信息:{}"
,
sign
,
e
);
...
...
src/main/resources/application-prod.yml
View file @
6d479e1b
...
@@ -2,7 +2,7 @@ spring:
...
@@ -2,7 +2,7 @@ spring:
#spring 默认数据库连接池
#spring 默认数据库连接池
datasource
:
datasource
:
type
:
com.zaxxer.hikari.HikariDataSource
type
:
com.zaxxer.hikari.HikariDataSource
url
:
jdbc:mysql://
rds0l977ya29d52h8tor650.mysql.rds.aliyuncs.com
:3306/liyeyun?allowMultiQueries=true&useUnicode=true&characterEncoding=UTF-8&useSSL=false&allowPublicKeyRetrieval=true
url
:
jdbc:mysql://
1.92.66.73
:3306/liyeyun?allowMultiQueries=true&useUnicode=true&characterEncoding=UTF-8&useSSL=false&allowPublicKeyRetrieval=true
username
:
liyeyun
username
:
liyeyun
password
:
CF**ldcn
password
:
CF**ldcn
driver-class-name
:
com.mysql.cj.jdbc.Driver
driver-class-name
:
com.mysql.cj.jdbc.Driver
...
...
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