Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
P
Police_Traffic_Web
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
Bruce
Police_Traffic_Web
Commits
187c3371
Commit
187c3371
authored
Aug 25, 2020
by
李崇誌
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
account -v0.1
parent
bcb0ae80
Changes
5
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
246 additions
and
68 deletions
+246
-68
.name
.idea/.name
+1
-0
vcs.xml
.idea/vcs.xml
+6
-0
AccountController.php
app/Http/Controllers/AccountController.php
+1
-1
LogMiddleware.php
app/Http/Middleware/LogMiddleware.php
+1
-1
admin_acc.blade.php
resources/views/admin_acc.blade.php
+237
-66
No files found.
.idea/.name
0 → 100644
View file @
187c3371
Z:\
\ No newline at end of file
.idea/vcs.xml
0 → 100644
View file @
187c3371
<?xml version="1.0" encoding="UTF-8"?>
<project
version=
"4"
>
<component
name=
"VcsDirectoryMappings"
>
<mapping
directory=
"Z:/"
vcs=
"Git"
/>
</component>
</project>
\ No newline at end of file
app/Http/Controllers/AccountController.php
View file @
187c3371
...
...
@@ -63,6 +63,6 @@ class AccountController extends Controller
{
// 查詢
$user
=
User
::
where
(
'name'
,
$request
->
name
)
->
get
();
return
redirect
()
->
route
(
'account'
,[
'Users'
=>
$user
])
;
return
$user
;
}
}
app/Http/Middleware/LogMiddleware.php
View file @
187c3371
...
...
@@ -29,7 +29,7 @@ class LogMiddleware
else
{
$usernum
=
$request
->
user
(
'User'
)
->
id
;
//操作人(要自己獲取)
}
print
(
sprintf
(
"當前使用者ID: %s ,log 目前先不寫進資料庫,如果不想顯示此段訊息,或是想寫進資料庫,通知 Bruce"
,
$usernum
==
0
?
"訪客"
:
$usernum
));
//
print(sprintf("當前使用者ID: %s ,log 目前先不寫進資料庫,如果不想顯示此段訊息,或是想寫進資料庫,通知 Bruce",$usernum == 0 ? "訪客" : $usernum));
self
::
writeLog
(
$usernum
,
$input
,
$path
,
$method
,
$ip
);
return
$next
(
$request
);
...
...
resources/views/admin_acc.blade.php
View file @
187c3371
This diff is collapsed.
Click to expand it.
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