重构查询
This commit is contained in:
1 parent
bb631a3643
commit
8f5784917c
73 files changed
+2634
-371
No files matched your search
@@ -8,6 +8,7 @@ use think\exception\ValidateException;
|
||||
use think\Validate;
|
||||
use app\middleware\UserLogin;
|
||||
use app\middleware\Auth;
|
||||
use app\middleware\Online;
|
||||
|
||||
|
||||
/**
|
||||
@@ -15,7 +16,6 @@ use app\middleware\Auth;
|
||||
*/
|
||||
abstract class BaseController
|
||||
{
|
||||
|
||||
/**
|
||||
* Request实例
|
||||
* @var \think\Request
|
||||
@@ -40,7 +40,9 @@ abstract class BaseController
|
||||
* @var array
|
||||
*/
|
||||
protected $middleware = [
|
||||
'login','auth'
|
||||
'auth'
|
||||
,'login'
|
||||
|
||||
];
|
||||
|
||||
/**
|
||||
|
||||
@@ -0,0 +1,19 @@
|
||||
<?php
|
||||
namespace app;
|
||||
|
||||
// 引用控制器基类
|
||||
use app\BaseController;
|
||||
|
||||
/**
|
||||
* 控制器基础类
|
||||
*/
|
||||
abstract class StudentSearchBase extends BaseController
|
||||
{
|
||||
/**
|
||||
* 控制器中间件
|
||||
* @var array
|
||||
*/
|
||||
protected $middleware = [
|
||||
'stulogin'
|
||||
];
|
||||
}
|
||||
@@ -0,0 +1,19 @@
|
||||
<?php
|
||||
namespace app;
|
||||
|
||||
// 引用控制器基类
|
||||
use app\BaseController;
|
||||
|
||||
/**
|
||||
* 控制器基础类
|
||||
*/
|
||||
abstract class TeacherSearchBase extends BaseController
|
||||
{
|
||||
/**
|
||||
* 控制器中间件
|
||||
* @var array
|
||||
*/
|
||||
protected $middleware = [
|
||||
'terlogin'
|
||||
];
|
||||
}
|
||||
Loaded 3 of 73 files, more files were not shown because too many files have changed in this diff.
Show more
Reference in new issue
Block a user