diff --git a/FC/Http/Curl.php b/FC/Http/Curl.php index 3569515..aba7fd3 100644 --- a/FC/Http/Curl.php +++ b/FC/Http/Curl.php @@ -28,7 +28,7 @@ class Curl // header头数组存放 public $headers = array(); // session名称 - public $session_name = 'PHPSESSID'; + //public $session_name = 'PHPSESSID'; /** @@ -217,7 +217,6 @@ public function getCookie() public function getCookieStr() { $ck = $this->getcookie; - // unset($ck[$this->session_name]); return http_build_query($ck); } @@ -250,9 +249,9 @@ public function gets() $headers[] = 'X-FORWARDED-FOR:' . $ip; $headers[] = 'CLIENT-IP:' . $ip; } - isset($_SESSION) || session_start(); - $headers[$this->session_name] = isset($_COOKIE[$this->session_name]) ? $_COOKIE[$this->session_name] : null; - session_write_close(); + //isset($_SESSION) || session_start(); + //$headers[$this->session_name] = isset($_COOKIE[$this->session_name]) ? $_COOKIE[$this->session_name] : null; + //session_write_close(); if (!empty($headers)) { curl_setopt($ch, CURLOPT_HTTPHEADER, $headers); } diff --git a/README.md b/README.md index 142be97..704214a 100644 --- a/README.md +++ b/README.md @@ -12,13 +12,13 @@ composer.json ```` { "require": { - "lovefc/fcphp": "6.2.2" + "lovefc/fcphp": "6.2.3" } } ```` ```` -composer require lovefc/fcphp:6.2.2 +composer require lovefc/fcphp:6.2.3 ```` ### 使用方法 diff --git a/composer.json b/composer.json index 152e395..1c0a084 100644 --- a/composer.json +++ b/composer.json @@ -2,7 +2,7 @@ "name": "lovefc/fcphp", "description": "FCPHP框架", "keywords": ["php","fcphp","php框架","framework"], - "version": "6.2.2", + "version": "6.2.3", "homepage": "https://gitee.com/lovefc/fcphp6.git", "license": "MIT", "require": {