mirror of
https://gitee.com/fastadminnet/framework.git
synced 2026-07-01 20:52:48 +08:00
改进Response类send方法
This commit is contained in:
@@ -98,7 +98,7 @@ class Response
|
||||
if ('' == $type) {
|
||||
$type = self::$type ?: (IS_AJAX ? Config::get('default_ajax_return') : Config::get('default_return_type'));
|
||||
}
|
||||
|
||||
$type = strtolower($type);
|
||||
$data = $data ?: self::$data;
|
||||
|
||||
if (!headers_sent() && isset(self::$contentType[$type])) {
|
||||
|
||||
Reference in New Issue
Block a user