loader->addDirs('Appapi'); /** ---------------- 响应接口请求 ---------------- **/ $api = new PhalApi(); $rs = $api->response(); $rs->output();