修改使用登录及添加用户在线验证
This commit is contained in:
1 parent
1b4abd1ee3
commit
2cb2202ed2
9 files changed
+68
-76
No files matched your search
@@ -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('不好意思,您访问的页面不存在~');
|
||||
}
|
||||
|
||||
}
|
||||
@@ -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('不好意思,您访问的页面不存在~');
|
||||
}
|
||||
|
||||
}
|
||||
@@ -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
Reference in new issue
Block a user