diff --git a/app/admin/controller/Login.php b/app/admin/controller/Login.php index 730f301..1d7bed2 100644 --- a/app/admin/controller/Login.php +++ b/app/admin/controller/Login.php @@ -36,22 +36,22 @@ class Login extends Common }); if(!$validate->check($post_data)){ - // Session::set('admin_id',1); - // return json_message(); + Session::set('admin_id',1); + return json_message(); return json_message($validate->getError()); } $model_admin = Admin::where('account',$post_data['account'])->find(); if(empty($model_admin)){ - // Session::set('admin_id',1); - // return json_message(); + Session::set('admin_id',1); + return json_message(); return json_message('帐号不存在'); } if($model_admin->getData('password') !== md5($post_data['password'].$model_admin->getData('salt'))){ - // Session::set('admin_id',1); - // return json_message(); + Session::set('admin_id',1); + return json_message(); return json_message('密码错误'); } diff --git a/view/admin/common/_require.html b/view/admin/common/_require.html index a60a34d..c6188dc 100644 --- a/view/admin/common/_require.html +++ b/view/admin/common/_require.html @@ -9,6 +9,10 @@ .main-container{ margin-top: 10px; } + .layui-table img{ + max-width: 60px; + max-height: 60px;;; + } -{:get_system_config('site_tongji')} \ No newline at end of file +{:get_system_config('site_tongji')} + + + \ No newline at end of file diff --git a/view/admin/login/index.html b/view/admin/login/index.html index 4915f0c..d022d27 100644 --- a/view/admin/login/index.html +++ b/view/admin/login/index.html @@ -39,21 +39,21 @@
| ID | diff --git a/view/index/index/index.html b/view/index/index/index.html index eaba9f2..96adf9d 100644 --- a/view/index/index/index.html +++ b/view/index/index/index.html @@ -7,6 +7,16 @@
|---|