1.php
执行某个控制器的方法时(http://test.com:9501/?s=index/index/test)其中这个方法必须是return 若是是echo 必须加 exit 不然会报错 thinkphp
2.修改thinkphp源码this
thinkphp\library\think\Request.php3d
修改public function pathinfo()方法server
注释blog
if (is_null($this->pathinfo)) {判断条件注释掉
修改public function path()方法get
注释源码
if (is_null($this->path)) {判断条件注释掉
修改(解决获取不到请求参数的问题报错method not exists:think\Request->filterValue)it
private function filterValue(&$value, $key, $filters)
改成io
public function filterValue(&$value, $key, $filters)
须要注意的是,tp5.1.38这个版本在
$http->on('request', function ($request, $response) {}
中不须要重写server和header