更新内核
This commit is contained in:
@@ -14,11 +14,17 @@ namespace app\common\model;
|
||||
*/
|
||||
class Base extends \think\Model{
|
||||
|
||||
protected $param;
|
||||
protected $type = array(
|
||||
'id' => 'integer',
|
||||
'cover_id' => 'integer',
|
||||
);
|
||||
|
||||
public function initialize(){
|
||||
parent::initialize();
|
||||
$this->param = \think\Request::instance()->param();
|
||||
}
|
||||
|
||||
/**
|
||||
* 数据修改
|
||||
* @return [bool] [是否成功]
|
||||
|
||||
Reference in New Issue
Block a user