更新功能
This commit is contained in:
@@ -14,6 +14,9 @@ namespace app\model;
|
||||
*/
|
||||
class Link extends \think\Model {
|
||||
|
||||
protected $auto = ['update_time'];
|
||||
protected $insert = ['create_time'];
|
||||
|
||||
public $keyList = array(
|
||||
array('name' => 'id', 'title' => 'ID', 'type' => 'hidden'),
|
||||
array('name' => 'title', 'title' => '友链标题', 'type' => 'text', 'help' => ''),
|
||||
@@ -30,10 +33,8 @@ class Link extends \think\Model {
|
||||
array('name' => 'descrip', 'title' => '描述', 'type' => 'textarea', 'help' => ''),
|
||||
);
|
||||
|
||||
protected $auto = array('update_time');
|
||||
|
||||
protected $type = array(
|
||||
'cover_id' => 'integer',
|
||||
'sort' => 'integer',
|
||||
'sort' => 'integer'
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user