内核更新

This commit is contained in:
2016-07-29 13:48:52 +08:00
parent 75125bb298
commit 9da53fc969
27 changed files with 770 additions and 530 deletions

View File

@@ -50,9 +50,7 @@ class Controller
$this->request = $request;
// 控制器初始化
if (method_exists($this, '_initialize')) {
$this->_initialize();
}
$this->_initialize();
// 前置操作方法
if ($this->beforeActionList) {
@@ -64,6 +62,11 @@ class Controller
}
}
// 初始化
protected function _initialize()
{
}
/**
* 前置操作
* @access protected
@@ -183,7 +186,7 @@ class Controller
}
}
// 是否批量验证
if($batch || $this->batchValidate){
if ($batch || $this->batchValidate) {
$v->batch(true);
}