mirror of
https://gitee.com/fastadminnet/framework.git
synced 2026-07-06 23:02:48 +08:00
改进Request类的type方法判断
This commit is contained in:
@@ -27,7 +27,7 @@ ThinkPHP5在保持快速开发和大道至简的核心理念不变的同时,PH
|
|||||||
+ 方便的自动生成定义
|
+ 方便的自动生成定义
|
||||||
+ 真正惰性加载
|
+ 真正惰性加载
|
||||||
+ 分布式环境支持
|
+ 分布式环境支持
|
||||||
+ 更多的社交类库
|
+ 支持Composer
|
||||||
|
|
||||||
> ThinkPHP5的运行环境要求PHP5.4以上。
|
> ThinkPHP5的运行环境要求PHP5.4以上。
|
||||||
|
|
||||||
@@ -53,6 +53,7 @@ www WEB部署目录(或者子目录)
|
|||||||
│ ├─common.php 公共函数文件
|
│ ├─common.php 公共函数文件
|
||||||
│ ├─config.php 公共配置文件
|
│ ├─config.php 公共配置文件
|
||||||
│ ├─route.php 路由配置文件
|
│ ├─route.php 路由配置文件
|
||||||
|
│ ├─tags.php 应用行为扩展定义文件
|
||||||
│ └─database.php 数据库配置文件
|
│ └─database.php 数据库配置文件
|
||||||
│
|
│
|
||||||
├─public WEB目录(对外访问目录)
|
├─public WEB目录(对外访问目录)
|
||||||
|
|||||||
@@ -93,7 +93,6 @@ class Request
|
|||||||
* @var array 资源类型
|
* @var array 资源类型
|
||||||
*/
|
*/
|
||||||
protected $mimeType = [
|
protected $mimeType = [
|
||||||
'html' => 'text/html,application/xhtml+xml,*/*',
|
|
||||||
'xml' => 'application/xml,text/xml,application/x-xml',
|
'xml' => 'application/xml,text/xml,application/x-xml',
|
||||||
'json' => 'application/json,text/x-json,application/jsonrequest,text/json',
|
'json' => 'application/json,text/x-json,application/jsonrequest,text/json',
|
||||||
'js' => 'text/javascript,application/javascript,application/x-javascript',
|
'js' => 'text/javascript,application/javascript,application/x-javascript',
|
||||||
@@ -107,6 +106,7 @@ class Request
|
|||||||
'jpg' => 'image/jpg,image/jpeg,image/pjpeg',
|
'jpg' => 'image/jpg,image/jpeg,image/pjpeg',
|
||||||
'gif' => 'image/gif',
|
'gif' => 'image/gif',
|
||||||
'csv' => 'text/csv',
|
'csv' => 'text/csv',
|
||||||
|
'html' => 'text/html,application/xhtml+xml,*/*',
|
||||||
];
|
];
|
||||||
|
|
||||||
protected $content;
|
protected $content;
|
||||||
|
|||||||
Reference in New Issue
Block a user