request->isPost()) { $params = $this->request->param(); try { SystemModel::update($params, ['id' => 1]); } catch (\Exception $e) { $msg = $e->getMessage(); $this->error("错误提示:" . $msg); } $this->success('操作成功', 'sys/system/index'); } } }