修改数据迁移、Base、和版本参数获取,增加index控制器初始化
This commit is contained in:
1 parent
7ab5bbdd8b
commit
e70b4b120b
10 files changed
+136
-44
No files matched your search
@@ -6,19 +6,10 @@ namespace app\common\controller;
|
||||
use think\Controller;
|
||||
// 引用权限验证类
|
||||
use think\auth\Auth;
|
||||
// 引用软删除类
|
||||
use think\model\concern\SoftDelete;
|
||||
|
||||
|
||||
|
||||
class Base extends Controller
|
||||
{
|
||||
// 开启全局自动时间戳
|
||||
protected $autoWriteTimestamp = true;
|
||||
|
||||
// 开启软删除
|
||||
use SoftDelete;
|
||||
protected $deleteTime = 'delete_time';
|
||||
|
||||
// 当前类初始化
|
||||
protected function initialize()
|
||||
|
||||
Reference in new issue
Block a user