|
@@ -65,10 +65,11 @@ class ElasticSearchGoodsCrontab implements JobInterface
|
|
|
* @param $data 数组内容
|
|
|
* @return String 请求返回原生数据
|
|
|
*/
|
|
|
- protected function http_rquest($url,$data){
|
|
|
+ protected function http_request($url,$data){
|
|
|
$opts = array(
|
|
|
'http' => array(
|
|
|
'method' => 'POST',
|
|
|
+ 'header' => "Content-type:application/x-www-form-urlencoded",
|
|
|
'content' => http_build_query($data),
|
|
|
)
|
|
|
);
|