# swoole_live **Repository Path**: changreat/swoole_live ## Basic Information - **Project Name**: swoole_live - **Description**: Swoole入门到实战打造高性能赛事直播平台 swoole集成tp5.1 - **Primary Language**: PHP - **License**: BSD-3-Clause - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 4 - **Created**: 2022-08-17 - **Last Updated**: 2025-10-27 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # swolle 适配 thinkphp5.1 ## 修改thinkphp\library\think\Request.php ### 1.重新获取页面url 修改 public function pathinfo() 这个方法 注释 if (is_null($this->pathinfo)) { 与 } 修改 public function path() 这个方法 注释 if (is_null($this->path)) { 与 } ### 2.获取参数 #``` public function __call($method, $args) { //当$this->hook 为空直接返回参数 if(empty($this->hook)){ return $args; } if (array_key_exists($method, $this->hook)) { array_unshift($args, $this); return call_user_func_array($this->hook[$method], $args); } else { throw new Exception('method not exists:' . static::class . '->' . $method); } } #```