365天token失效
This commit is contained in:
parent
cd11e20b1c
commit
0396fa53f4
|
@ -109,7 +109,12 @@ public class ApiReadFileController extends ApiBaseController {
|
|||
})
|
||||
public void readFileDetail(String id) {
|
||||
String apiUserId = getApiUserId();
|
||||
List<ReadFileUser> list = readFileUserService.list(new LambdaQueryWrapper<ReadFileUser>().eq(ReadFileUser::getUserId, apiUserId).eq(ReadFileUser::getFileId, id));
|
||||
List<ReadFileUser> list = readFileUserService.list(new LambdaQueryWrapper<ReadFileUser>()
|
||||
.eq(ReadFileUser::getFileId, id)
|
||||
.and((opt) -> {
|
||||
opt.eq(ReadFileUser::getUserId, apiUserId)
|
||||
.or().eq(ReadFileUser::getCreatedId, apiUserId);
|
||||
}));
|
||||
if (CollectionUtil.isNotEmpty(list)) {
|
||||
ReadFile readFile = readFileService.getById(id);
|
||||
readFile.full();
|
||||
|
|
|
@ -83,7 +83,7 @@ public class TokenUtil {
|
|||
//添加Token过期时间
|
||||
long expireMillis;
|
||||
if (tokenType.equals(TokenConstant.ACCESS_TOKEN)) {
|
||||
expireMillis = 90 * 24 * 60 * 60 * 1000L;
|
||||
expireMillis = 365 * 24 * 60 * 60 * 1000L;
|
||||
} else if (tokenType.equals(TokenConstant.REFRESH_TOKEN)) {
|
||||
expireMillis = 30 * 24 * 60 * 60 * 1000L;
|
||||
} else {
|
||||
|
|
|
@ -1 +0,0 @@
|
|||
.login-box[data-v-8e88fec0]{background-color:#fff}.login-wrapper[data-v-8e88fec0]{padding:2.13333rem .85333rem 0 .85333rem;z-index:50}.login-wrapper .title[data-v-8e88fec0]{font-size:.64rem;font-family:PingFang SC,PingFang SC-Bold;font-weight:700;color:#000;position:relative}.login-wrapper .title span[data-v-8e88fec0]{position:absolute;right:0;bottom:0;font-size:.42667rem;font-family:PingFang SC,PingFang SC-Regular;font-weight:400;color:#d03a29}.login-wrapper .account[data-v-8e88fec0]{padding-top:1.06667rem;margin-bottom:.85333rem}.login-wrapper .password[data-v-8e88fec0]{margin-bottom:1.06667rem}.login-wrapper .account .line[data-v-8e88fec0],.login-wrapper .password .line[data-v-8e88fec0]{height:.02667rem;background:#efefef}.login-wrapper .account p[data-v-8e88fec0],.login-wrapper .password p[data-v-8e88fec0]{font-size:.42667rem;font-family:PingFang SC,PingFang SC-Bold;font-weight:700;text-align:left;color:#000;padding-bottom:.34667rem}.login-wrapper .account .loginconter[data-v-8e88fec0],.login-wrapper .password .loginconter[data-v-8e88fec0]{display:flex;align-items:center;margin-bottom:.10667rem}.login-wrapper .account .loginconter .van-cell[data-v-8e88fec0],.login-wrapper .password .loginconter .van-cell[data-v-8e88fec0]{padding:0}.login-wrapper .account .loginconter .van-cell[data-v-8e88fec0]:after,.login-wrapper .password .loginconter .van-cell[data-v-8e88fec0]:after{display:none}.login-wrapper .account .loginconter input[data-v-8e88fec0],.login-wrapper .password .loginconter input[data-v-8e88fec0]{width:100%;outline:none;border:none;font-size:.37333rem;font-family:PingFang SC,PingFang SC-Bold;font-weight:700;text-align:left;color:#333}.login-wrapper .account .loginconter img[data-v-8e88fec0],.login-wrapper .password .loginconter img[data-v-8e88fec0]{width:.32rem;height:.32rem}.login-wrapper .remember[data-v-8e88fec0]{margin-bottom:1.06667rem;display:flex;justify-content:space-between;align-items:center}.login-wrapper .remember .label[data-v-8e88fec0]{font-size:.42667rem;color:#000;font-weight:700}.login-wrapper .btn[data-v-8e88fec0]{width:8.53333rem;height:1.06667rem;background:#d03a29;border-radius:.53333rem;box-shadow:0 .08rem .16rem 0 rgba(208,58,41,.2);line-height:1.06667rem;font-size:.37333rem;text-align:center;font-family:PingFang SC,PingFang SC-Bold;font-weight:700;color:#fff;letter-spacing:.02667rem}.login-box[data-v-8e88fec0]{position:relative;display:flex;flex-direction:column;height:100%}.footerbg[data-v-8e88fec0]{width:100%;z-index:30;position:absolute;bottom:0}.footerbg img[data-v-8e88fec0]{display:block;width:100%}
|
|
@ -0,0 +1 @@
|
|||
.login-box[data-v-f7a74b56]{background-color:#fff}.login-wrapper[data-v-f7a74b56]{padding:2.13333rem .85333rem 0 .85333rem;z-index:50}.login-wrapper .title[data-v-f7a74b56]{font-size:.64rem;font-family:PingFang SC,PingFang SC-Bold;font-weight:700;color:#000;position:relative}.login-wrapper .title span[data-v-f7a74b56]{position:absolute;right:0;bottom:0;font-size:.42667rem;font-family:PingFang SC,PingFang SC-Regular;font-weight:400;color:#d03a29}.login-wrapper .account[data-v-f7a74b56]{padding-top:1.06667rem;margin-bottom:.85333rem}.login-wrapper .password[data-v-f7a74b56]{margin-bottom:1.06667rem}.login-wrapper .account .line[data-v-f7a74b56],.login-wrapper .password .line[data-v-f7a74b56]{height:.02667rem;background:#efefef}.login-wrapper .account p[data-v-f7a74b56],.login-wrapper .password p[data-v-f7a74b56]{font-size:.42667rem;font-family:PingFang SC,PingFang SC-Bold;font-weight:700;text-align:left;color:#000;padding-bottom:.34667rem}.login-wrapper .account .loginconter[data-v-f7a74b56],.login-wrapper .password .loginconter[data-v-f7a74b56]{display:flex;align-items:center;margin-bottom:.10667rem}.login-wrapper .account .loginconter .van-cell[data-v-f7a74b56],.login-wrapper .password .loginconter .van-cell[data-v-f7a74b56]{padding:0}.login-wrapper .account .loginconter .van-cell[data-v-f7a74b56]:after,.login-wrapper .password .loginconter .van-cell[data-v-f7a74b56]:after{display:none}.login-wrapper .account .loginconter input[data-v-f7a74b56],.login-wrapper .password .loginconter input[data-v-f7a74b56]{width:100%;outline:none;border:none;font-size:.37333rem;font-family:PingFang SC,PingFang SC-Bold;font-weight:700;text-align:left;color:#333}.login-wrapper .account .loginconter img[data-v-f7a74b56],.login-wrapper .password .loginconter img[data-v-f7a74b56]{width:.32rem;height:.32rem}.login-wrapper .remember[data-v-f7a74b56]{margin-bottom:1.06667rem;display:flex;justify-content:space-between;align-items:center}.login-wrapper .remember .label[data-v-f7a74b56]{font-size:.42667rem;color:#000;font-weight:700}.login-wrapper .btn[data-v-f7a74b56]{width:8.53333rem;height:1.06667rem;background:#d03a29;border-radius:.53333rem;box-shadow:0 .08rem .16rem 0 rgba(208,58,41,.2);line-height:1.06667rem;font-size:.37333rem;text-align:center;font-family:PingFang SC,PingFang SC-Bold;font-weight:700;color:#fff;letter-spacing:.02667rem}.login-box[data-v-f7a74b56]{position:relative;display:flex;flex-direction:column;height:100%}.footerbg[data-v-f7a74b56]{width:100%;z-index:30;position:absolute;bottom:0}.footerbg img[data-v-f7a74b56]{display:block;width:100%}
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue