laravel框架中使用的代碼: /** * socket服務(wù)器ID綁定 */ public function postSocketBind() { Gateway::$registerAddress = '127.0.0.1:1238'; $socket_id = \request()->input('client_id'); ...