$data = [ 'title' => '关于', 'name' => 'about' ]; $id = 5; $res = model('page')->data($data,true)->allowField(true)->save($data,['id'=>$id]);