request->get('id/d'); $result = DecoratePageLogic::getDetail($id); return $this->success('获取成功', $result); } /** * @notes 保存装修配置 * @return \think\response\Json * @author 段誉 * @date 2022/9/15 9:57 */ public function save() { $params = (new DecoratePageValidate())->post()->goCheck(); $result = DecoratePageLogic::save($params); if (false === $result) { return $this->fail(DecoratePageLogic::getError()); } return $this->success('操作成功', [], 1, 1); } }