Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
A
account-book
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
刘文虎
account-book
Commits
bd51154d
Commit
bd51154d
authored
Jul 20, 2022
by
刘文虎
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
登录拦截
parent
57d9d58b
Pipeline
#2826
canceled with stages
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
common.js
utils/common.js
+2
-2
No files found.
utils/common.js
View file @
bd51154d
...
...
@@ -97,7 +97,7 @@ export function checkToken() {
let
backToken
=
getToken
()
let
backTime
=
uni
.
getStorageSync
(
TIMETAMP
)
if
(
backToken
)
{
if
(
backTime
&&
time
-
backTime
<=
24
*
60
*
60
*
1000
)
{
if
(
backTime
&&
time
-
backTime
<=
8
*
60
*
60
*
1000
)
{
return
true
;
}
else
{
removeUserinfo
()
...
...
@@ -132,7 +132,7 @@ export function checkCodeTimetamp() {
let
time
=
new
Date
().
getTime
()
let
backTime
=
getCodeTimetamp
()
if
(
backTime
)
{
if
(
time
-
backTime
<=
2
*
60
*
60
*
1000
)
{
if
(
time
-
backTime
<=
8
*
60
*
60
*
1000
)
{
return
true
;
}
else
{
removeCodeTimetamp
()
...
...
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