renderSuccess('', compact('vars')); } /** * 预售设置 */ public function index() { if ($this->request->isGet()) { return $this->getSetting(); } $model = new SettingModel; $data = $this->request->param(); if ($model->edit('advance', $data)) { return $this->renderSuccess('操作成功'); } return $this->renderError('操作失败'); } }