if (!$model->create()) { $this->error($model->getError()); } if (false !== $model->save()) { $this->error('编辑失败!'); } else { $this->success('编辑成功!' ); }
if (false !== $model->save())