ayHaru 4 سال پیش
والد
کامیت
000a425ad7
2فایلهای تغییر یافته به همراه4 افزوده شده و 5 حذف شده
  1. 2 2
      application/index/controller/Login.php
  2. 2 3
      route/route.php

+ 2 - 2
application/index/controller/Login.php

@@ -9,7 +9,7 @@ class Login extends Controller{
     /**
      * 管理员登录
      * */
-    public function login(){
+    public function Login(){
         $username = input('post.username');
         $password = input('post.password');
 
@@ -46,7 +46,7 @@ class Login extends Controller{
     /**
      * 管理员退出
      */
-    public function login_out(){
+    public function LoginOut(){
         session('username', null);
         session('id', null);
         json_return(200,[],'success');

+ 2 - 3
route/route.php

@@ -1,7 +1,7 @@
 <?php
     Route::group('/',array(
-        'Login'                     => 'index/login/login',
-        'LoginOut'                  => 'index/login/login_out',
+        'Login'                     => 'index/login/Login',
+        'LoginOut'                  => 'index/login/LoginOut',
         'UserAdd'                   => 'index/user/UserAdd',
         'UserList'                  => 'index/user/UserList',
         'UserDel'                   => 'index/user/UserDel',
@@ -9,7 +9,6 @@
         'test'                      => 'index/cabinet/test',
 
         'CheckFcode'                => 'index/cabinet/CheckFcode',
-
         'AddCabinet'                => 'index/cabinet/AddCabinet',
         'OpenBox'                   => 'index/cabinet/OpenBox',
         'LockCabinet'               => 'index/cabinet/LockCabinet',