修改使用登录及添加用户在线验证

This commit is contained in:
巴掌 committed 2018-10-17 13:46:49 +08:00
1 parent 1b4abd1ee3
commit 2cb2202ed2
9 files changed
+68 -76

No files matched your search

+1 -3
View File
@@ -15,8 +15,6 @@ class Base extends Controller
protected $middleware = [
'YanZheng'=>[
'except'=>[
'notfound',
'mysuccess',
'ajaxData',
],
],
@@ -24,7 +22,7 @@ class Base extends Controller
public function _empty()
{
$this->redirect(url('/notfound'));
$this->error('不好意思,您访问的页面不存在~');
}
}
+2 -2
View File
@@ -15,12 +15,12 @@ class BaseError extends Controller
public function index()
{
// 跳转页面
$this->redirect(url('/notfound'));
$this->error('不好意思,您访问的页面不存在~');
}
public function _empty()
{
$this->redirect(url('/notfound'));
$this->error('不好意思,您访问的页面不存在~');
}
}
-38
View File
@@ -8,42 +8,4 @@ use app\common\controller\Base;
class Index extends Base
{
/**
* 操作成功跳转
*
* @return \think\Response
*/
public function mysuccess($msg = '操作成功~')
{
// 模版赋值
$this->assign('msg',$msg);
// 跳转页面
return $this->fetch();
}
/**
* 操作失败跳转
*
* @return \think\Response
*/
public function notfound ($msg = '不好意思,您访问的页面不存在~' )
{
if (session('?msg'))
{
$msg = session('msg');
session('msg', null);
}
// 模版赋值
$this->assign('msg',$msg);
// 跳转页面
return $this->fetch();
}
}
Loaded 3 of 9 files, more files were not shown because too many files have changed in this diff. Show more