作者:123456ws1043 | 来源:互联网 | 2023-09-06 12:01
1234567891011121314class Index extends Controller{ function index() { $file = EASYSWOOL
1 2 3 4 5 6 7 8 9 10 11 12 13 14
| class Index extends Controller
{
function index()
{
$file = EASYSWOOLE_ROOT.'/vendor/easyswoole/easyswoole/src/Resource/Http/welcome.html';
if(!is_file($file)){
$file = EASYSWOOLE_ROOT.'/src/Resource/Http/welcome.html';
}
go(function(){
co::sleep(1);
echo 1;
});
$this->response()->write(file_get_contents($file));
} |
DEBUG : [Call to undefined function App\HttpController\go() at file:/wwwroot/App/HttpController/Index.php line:18]