post(); echo getDateFull()."=={$param['type']}==\n"; print_r($param); return json([ "err_no" => 0, "err_tips" => "success" ]); } catch (\Throwable $throwable) { return error($throwable->getMessage()); } } /** * 核销工具解决方案-扩展点-spi * @param Request $request * @return Response */ #[Route(path: "expand",methods: "post")] public function getExpandData(Request $request): Response { try { $param = $request->post(); switch ($param['type']) { case "pre_create_order": // 预下单回调 break; case "pre_create_refund": // 退款审核回调 break; } echo getDateFull()."=={$param['type']}==\n"; print_r($param); return json([ "err_no" => 0, "err_tips" => "success" ]); } catch (\Throwable $throwable) { return error($throwable->getMessage()); } } }