Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
U
uc_card
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
zhoujun
uc_card
Commits
3f1bcb8e
Commit
3f1bcb8e
authored
Jun 08, 2021
by
zhoujun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
守护天数
parent
78b06341
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
3 deletions
+4
-3
src/app/Http/Controllers/Admin/AdminController.php
src/app/Http/Controllers/Admin/AdminController.php
+1
-0
src/resources/views/card/card.blade.php
src/resources/views/card/card.blade.php
+3
-3
No files found.
src/app/Http/Controllers/Admin/AdminController.php
View file @
3f1bcb8e
...
@@ -36,6 +36,7 @@ class AdminController extends Controller
...
@@ -36,6 +36,7 @@ class AdminController extends Controller
*/
*/
public
function
getLogin
()
public
function
getLogin
()
{
{
if
(
Auth
::
check
())
return
redirect
(
route
(
'checkImg'
));
$data
[
'ERROR'
]
=
Session
::
get
(
'error'
,
''
);
$data
[
'ERROR'
]
=
Session
::
get
(
'error'
,
''
);
return
$this
->
view
(
'admin.login'
,
$data
);
return
$this
->
view
(
'admin.login'
,
$data
);
}
}
...
...
src/resources/views/card/card.blade.php
View file @
3f1bcb8e
...
@@ -172,8 +172,8 @@
...
@@ -172,8 +172,8 @@
})
})
$
(
dom
).
html
(
html
);
$
(
dom
).
html
(
html
);
}
}
@
if
(
$info
->
online_time
>
0
)
@
if
(
$info
->
register_time
!=
''
)
renderHtml
(
'
#bNum
'
,{{
ceil
(
$info
->
online_time
/
86400
)
}});
renderHtml
(
'
#bNum
'
,{{
ceil
((
strtotime
(
date
(
'
Y-m-d H:i:s
'
))
-
strtotime
(
$info
->
register_time
))
/
86400
)
}});
@
else
@
else
renderHtml
(
'
#bNum
'
,
0
);
renderHtml
(
'
#bNum
'
,
0
);
@
endif
@
endif
...
...
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