* 处理数据
* @access protected
* @param mixed $data 要处理的数据
* @return mixed
* @throws \Exception
*/
protected function output($data)
{
if (!$this->isContent && !is_file($data)) {
throw new Exception('file not exists:' . $data);
}
ob_end_clean();
if (!empty($this->name)) {
$name = $this->name;
} else {
$name = !$this->isContent ? pathinfo($data, PATHINFO_BASENAME) : '';
}
USER | www |
HOME | /home/www |
SCRIPT_NAME | /index.php |
REQUEST_URI | /homeDoDownload/74 |
QUERY_STRING | |
REQUEST_METHOD | GET |
SERVER_PROTOCOL | HTTP/1.1 |
GATEWAY_INTERFACE | CGI/1.1 |
REDIRECT_URL | /homeDoDownload/74 |
REMOTE_PORT | 41538 |
SCRIPT_FILENAME | /www/wwwroot/47.243.132.146/public/index.php |
SERVER_ADMIN | webmaster@example.com |
CONTEXT_DOCUMENT_ROOT | /www/wwwroot/47.243.132.146/public |
CONTEXT_PREFIX | |
REQUEST_SCHEME | http |
DOCUMENT_ROOT | /www/wwwroot/47.243.132.146/public |
REMOTE_ADDR | 142.111.159.202 |
SERVER_PORT | 80 |
SERVER_ADDR | 172.29.42.179 |
SERVER_NAME | www.asdtech.cn |
SERVER_SOFTWARE | Apache |
SERVER_SIGNATURE | Apache Server at www.asdtech.cn Port 80 |
LD_LIBRARY_PATH | /www/server/apache/lib |
PATH | /www/server/panel/pyenv/bin:/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:/root/bin |
HTTP_ACCEPT_ENCODING | gzip |
HTTP_ACCEPT | */* |
HTTP_HOST | www.asdtech.cn |
HTTP_USER_AGENT | Mozilla/5.0 (compatible; Googlebot/2.1; +http://www.google.com/bot.html) |
proxy-nokeepalive | 1 |
REDIRECT_STATUS | 200 |
REDIRECT_PATH_INFO | homeDoDownload/74 |
FCGI_ROLE | RESPONDER |
PHP_SELF | /index.php |
REQUEST_TIME_FLOAT | 1701531279.8225 |
REQUEST_TIME | 1701531279 |
FILTER_VALIDATE_BOOL | 258 |