all(); echo getDateFull()."===自研应用回调===\n"; print_r($param); return error("ddd"); } catch (\Throwable $throwable) { return error($throwable->getMessage()); } } #[PostMapping("hook")] public function getLifeHook(Request $request): Response { try { $data = $request->all(); echo getDateFull()."===自研应用回调WebHook===\n"; print_r($data); if (isset($data['event']) && $data['event'] == "verify_webhook") { return json(['challenge' => $data['content']['challenge']]); } return error("ddd"); } catch (\Throwable $throwable) { return error($throwable->getMessage()); } } #[PostMapping("mini")] public function getMiniHook(Request $request): Response { try { $data = $request->all(); echo getDateFull()."===小程序WebHook===\n"; print_r($data); if (isset($data['event']) && $data['event'] == "verify_webhook") { return json(['challenge' => $data['content']['challenge']]); } return error("ddd"); } catch (\Throwable $throwable) { return error($throwable->getMessage()); } } }