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