mirror of
https://gitee.com/pan648540858/wvp-GB28181-pro.git
synced 2026-05-26 23:17:50 +08:00
Compare commits
No commits in common. "49578e884f42ac818fba6422df5927a042ce1982" and "9c2c727c8c3ac556c7360e5a0436b6e506a3c0a0" have entirely different histories.
49578e884f
...
9c2c727c8c
3
.github/workflows/build.yml
vendored
3
.github/workflows/build.yml
vendored
@ -64,7 +64,8 @@ jobs:
|
||||
fi
|
||||
|
||||
TAG_NAME="${GITHUB_REF#refs/tags/}"
|
||||
ZIP_FILE_NAME="${BRANCH_NAME}-${TAG_NAME}.zip"
|
||||
DATE=$(date +%Y%m%d)
|
||||
ZIP_FILE_NAME="${BRANCH_NAME}-${TAG_NAME}-${DATE}.zip"
|
||||
zip -r "$ZIP_FILE_NAME" release
|
||||
echo "ZIP_FILE_NAME=$ZIP_FILE_NAME" >> $GITHUB_ENV
|
||||
|
||||
|
||||
@ -231,7 +231,7 @@ public class JwtUtils implements InitializingBean {
|
||||
if (expirationTime != null) {
|
||||
// 判断是否即将过期, 默认剩余时间小于5分钟未即将过期
|
||||
// 剩余时间 (秒)
|
||||
long timeRemaining = expirationTime.getValue() - LocalDateTime.now().toEpochSecond(ZoneOffset.ofHours(8));
|
||||
long timeRemaining = LocalDateTime.now().toEpochSecond(ZoneOffset.ofHours(8)) - expirationTime.getValue();
|
||||
if (timeRemaining < 5 * 60) {
|
||||
jwtUser.setStatus(JwtUser.TokenStatus.EXPIRING_SOON);
|
||||
} else {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user