Commit Graph

161 Commits

Author SHA1 Message Date
thinkphp
282d04e4af 更新说明 2018-01-01 20:19:18 +08:00
thinkphp
c661cc7c46 改进日志记录的ip地址 2017-11-16 17:45:21 +08:00
yunwuxin
7af0a6a22b 改进HOST的获取 2017-11-02 14:29:22 +08:00
thinkphp
495020b7b0 改进Request类filterExp方法 2017-09-05 14:16:54 +08:00
thinkphp
5d80302da5 请求缓存支持缓存标签设置 2017-08-17 14:22:53 +08:00
yinggaozhen
2e1d7aaa79 调整request bind方法形参类型 2017-08-03 11:29:14 +08:00
yinggaozhen
e660c545ba 新增request env属性 2017-08-03 11:29:14 +08:00
thinkphp
1b37ce1abd 增加https_agent_name配置参数 改进Request类的isssl方法 2017-07-04 11:35:57 +08:00
thinkphp
439d05fa6f 自动请求缓存不区分大小写 2017-06-27 17:56:31 +08:00
thinkphp
e5a24df10d 修正注释 2017-06-03 12:09:28 +08:00
thinkphp
ab2222b100 改进命令行下面的URL生成 2017-05-22 14:43:42 +08:00
thinkphp
bb3cfae0a6 添加default_url_root参数设置默认URL根地址 2017-05-22 12:39:46 +08:00
thinkphp
faffdee907 改进Request的type方法对image类型的判断 统一返回image 2017-05-16 19:10:06 +08:00
thinkphp
f1b3ab5a3d 改进Request类的filter过滤机制 支持正则 2017-05-03 11:22:08 +08:00
thinkphp
68790e8d9a 改进输入过滤 2017-04-30 22:58:49 +08:00
thinkphp
f3aa05f808 改进Request类filterValue方法 2017-04-30 21:45:09 +08:00
thinkphp
0a04fe1b4c 修正Request类cookie方法 2017-03-23 14:37:35 +08:00
thinkphp
1e909984ea 改进Cookie类的get方法支持获取全部 改进Request类的cookie方法 2017-03-23 11:58:52 +08:00
thinkphp
6e27ae32a9 改进全局请求缓存的缓存标识 2017-03-22 12:08:12 +08:00
thinkphp
bcf64f19f4 调整 2017-02-25 10:51:57 +08:00
thinkphp
428a30e296 改进Request类param方法 2017-02-24 14:02:26 +08:00
thinkphp
c3e45a1a69 改进Request类 2017-02-22 18:21:30 +08:00
thinkphp
e482cbe7e8 改进Request类contentType方法 2017-02-22 11:27:07 +08:00
苗高鹏
21834f797d Merge branch 'master' into bugfix3 2017-02-13 14:53:24 +08:00
thinkphp
1cdb0ba693 改进全局自动请求缓存对子域名的支持 2017-02-09 10:29:45 +08:00
thinkphp
79fb229181 全局请求缓存添加排除规则 添加request_cache_except配置参数 2017-01-26 20:38:22 +08:00
hooklife
5c4df0ce08 修改架构函数为 构造方法 2017-01-10 15:48:42 +08:00
thinkphp
d6b9e2f628 2017更新 2017-01-01 13:00:23 +08:00
thinkphp
e7895d2593 修正Request类contentType方法 2016-12-29 22:33:25 +08:00
thinkphp
dd384422a7 改进 2016-12-29 12:05:58 +08:00
thinkphp
c4686695bc 改进Request类的input和post方法对json格式参数的接收 2016-12-29 10:18:10 +08:00
thinkphp
43b364e286 规范代码 2016-12-24 21:37:05 +08:00
thinkphp
c8712192be 改进Request类的domain方法 2016-12-23 15:36:22 +08:00
thinkphp
83c13a741c 改进Request类的create方法 2016-12-22 10:50:44 +08:00
thinkphp
565222cfea 改进Request类的post和put方法 2016-12-21 18:11:37 +08:00
thinkphp
d898ab35de 改进Request类domain方法 2016-12-21 12:06:09 +08:00
thinkphp
8f2ed014cc 改进Request类的domain方法 包含端口 2016-12-21 11:22:36 +08:00
thinkphp
3cfd718c38 改进命令行模式下 日志写入出错的问题 2016-12-16 14:34:44 +08:00
thinkphp
ce590c2e53 改进Request类的accept方法 2016-12-15 12:29:51 +08:00
thinkphp
0428e1b120 改进Request类的file方法 2016-12-07 07:47:35 +08:00
quzhe
0962b21232 让Request支持json方式的POST
目前RESTful API用json方式提交的很多
目前PUT/PATCH/DELETE方法均可以支持json,但POST方法不能,这不对等
其实更好的方法是判断header里content-type是否为application/json,但因为目前header属性采用的是懒加载,所以暂时沿用目前的字符串判断
2016-11-29 11:40:02 +08:00
thinkphp
a10cc77e40 数组语法调整 2016-11-21 15:33:55 +08:00
thinkphp
7eaf95de9b 请求缓存的有效期如果传入false表示不缓存 路由规则的cache参数传入false也同样表示不缓存 即使开启了全局请求缓存 2016-11-09 13:53:36 +08:00
thinkphp
53329b79b6 Requesst类的Input方法和input助手函数的filter参数支持传入null 表示当前不过滤 2016-11-09 12:17:42 +08:00
thinkphp
57f206b757 增强请求缓存功能 支持全局配置 增加request_cache配置参数 增加特殊缓存规则定义 如果同一次请求存在多次请求缓存调用 则第一次有效 2016-11-01 17:51:38 +08:00
thinkphp
594d263ea2 注释调整 2016-10-31 18:07:06 +08:00
thinkphp
eb103a63a5 改进Request类ip方法 2016-10-22 13:21:49 +08:00
HyperQing
c64a335884 为Request类的几个方法完善注释
在phpstorm2016.2.1中,使用下列语句会提示警告: 

>Method __toString is not implemented for '\think\Request' less... (Ctrl+F1) 
This inspection detects attempts to convert objects without __toString() method implementation to string, since PHP 5.2.0, it would cause E_RECOVERABLE_ERROR. "Check __toString exists for each expression type": if the option is on, the inspection will check all possible types of the expression and report if at least one ot them doesn't contain __toString() method implementation. 
```
$request = Request::instance();
echo "当前模块名称是" . $request->module();// 这句会被IDE提示警告
echo "当前控制器名称是" . $request->controller();// 这句会被IDE提示警告
echo "当前操作名称是" . $request->action();// 这句就不会
```
后来发现是注释引起的问题,注释中有@return string|$this。而action()方法却写成@return string。个人认为应该统一写成@return string|Request 比较合适。学识短浅,仅供参考 
```
/**
     * 设置或者获取当前的模块名
     * @access public
     * @param string $module 模块名
     * @return string|$this
     */
    public function module($module = null)
```
2016-10-21 11:36:55 +08:00
thinkphp
4554f99451 改进 2016-10-15 11:09:34 +08:00
thinkphp
2ef3ad748b 改进 2016-10-15 11:03:56 +08:00