Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
T
tl_estate
Project
Project
Details
Activity
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
hujun
tl_estate
Commits
19bc8794
Commit
19bc8794
authored
Dec 26, 2017
by
hujun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
c端后台退出
parent
b2d6eea0
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
1 deletion
+13
-1
Login.php
application/index/controller/Login.php
+12
-0
route.php
application/route.php
+1
-1
No files found.
application/index/controller/Login.php
View file @
19bc8794
...
@@ -59,4 +59,15 @@ class Login extends Basic
...
@@ -59,4 +59,15 @@ class Login extends Basic
}
}
}
}
/**
* 退出
*
* @return \think\response\View
*/
public
function
logout
()
{
Session
::
clear
();
return
view
(
"/login/login"
,
[
"msg"
=>
"退出成功"
]);
}
}
}
\ No newline at end of file
application/route.php
View file @
19bc8794
...
@@ -80,7 +80,7 @@ Route::group('index', [
...
@@ -80,7 +80,7 @@ Route::group('index', [
//login
//login
'login'
=>
[
'index/login/login'
,[
'method'
=>
'get'
]],
'login'
=>
[
'index/login/login'
,[
'method'
=>
'get'
]],
'loginVerify'
=>
[
'index/login/loginVerify'
,[
'method'
=>
'post|get'
]],
'loginVerify'
=>
[
'index/login/loginVerify'
,[
'method'
=>
'post|get'
]],
'logout'
=>
[
'index/login/logout'
,[
'method'
=>
'get'
]],
//退出
//watchshop 预约看铺
//watchshop 预约看铺
'watch_shop'
=>
[
'index/WatchShop/index'
,[
'method'
=>
'get'
]],
'watch_shop'
=>
[
'index/WatchShop/index'
,[
'method'
=>
'get'
]],
'get_watch'
=>
[
'index/WatchShop/getList'
,[
'method'
=>
'get'
]],
'get_watch'
=>
[
'index/WatchShop/getList'
,[
'method'
=>
'get'
]],
...
...
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