$this->request->isPost() 在接收空数据的
使用$.post(target, query).success(function(data) {
会报下面报错
Deprecated: Automatically populating $HTTP_RAW_POST_DATA is deprecated and will be removed in a future version. To avoid this warning set 'always_populate_raw_post_data' to '-1' in php.ini and use the php://input stream instead. in Unknown on line 0
解决方案
前端页面发起$.post时传递到后端的data参数肯定没给值