更新功能

This commit is contained in:
2020-03-28 20:39:39 +08:00
parent 5ef77bb8f4
commit 4893580b70
9 changed files with 149 additions and 119 deletions

View File

@@ -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'
);
}