Skip to content

Commit

Permalink
去掉不稳定因素
Browse files Browse the repository at this point in the history
  • Loading branch information
lovefc committed Mar 25, 2022
1 parent 91f62ef commit d3d5e8c
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 8 deletions.
9 changes: 4 additions & 5 deletions FC/Http/Curl.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ class Curl
// header头数组存放
public $headers = array();
// session名称
public $session_name = 'PHPSESSID';
//public $session_name = 'PHPSESSID';


/**
Expand Down Expand Up @@ -217,7 +217,6 @@ public function getCookie()
public function getCookieStr()
{
$ck = $this->getcookie;
// unset($ck[$this->session_name]);
return http_build_query($ck);
}

Expand Down Expand Up @@ -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);
}
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
````

### 使用方法
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": {
Expand Down

0 comments on commit d3d5e8c

Please sign in to comment.