get($id); if (empty($row)) { $this->error('附件不存在'); } if ($row->save(['name' => $name])) { $this->success('修改成功'); } else { $this->error('修改失败'); } } }