createApp(); $server = $app->getServer(); $message = $server->getRequestMessage(); if (empty($message)){ return $this->response->withStatus(500)->withBody(new SwooleStream(strval(json_encode(['code' => 'ERROR', 'message' => "回调数据为空"], JSON_UNESCAPED_UNICODE)))); } dump($message); return $server->serve(); }catch (\Exception $e) { return $this->response->withStatus(500)->withBody(new SwooleStream(strval(json_encode(['code' => 'ERROR', 'message' => $e->getMessage()], JSON_UNESCAPED_UNICODE)))); } } // 医生端微信支付回调 public function doctorWxPayCallBack(): ResponseInterface { return $this->response->json([]); } // im回调 public function imCallBack(){ $request_params = $this->request->all(); Log::getInstance()->info(json_encode($request_params,JSON_UNESCAPED_UNICODE)); } }