This commit is contained in:
caoyanyi
2022-04-26 09:04:11 +08:00
parent 559796b512
commit 2df290f018
3 changed files with 7 additions and 7 deletions
+3 -3
View File
@@ -2660,7 +2660,7 @@ EOD;
if($isFreepasswd) return print(js::locate($this->config->webRoot));
$this->session->set('ENTRY_CODE', $this->get->code);
$this->session->set('VALID_ENTRY', md5(md5($this->get->code) . $this->server->remote_addr));
$this->session->set('VALID_ENTRY', md5(md5($this->get->code) . helper::getRemoteIp()));
$this->loadModel('entry')->saveLog($entry->id, $this->server->request_uri);
/* Add for task #5384. */
@@ -2827,7 +2827,7 @@ EOD;
commonModel::$requestErrors = array();
if(!is_array($headers)) $headers = (array)$headers;
$headers[] = "API-RemoteIP: " . zget($_SERVER, 'REMOTE_ADDR', '');
$headers[] = "API-RemoteIP: " . helper::getRemoteIp();
$curl = curl_init();
curl_setopt($curl, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_0);
@@ -2914,7 +2914,7 @@ EOD;
commonModel::$requestErrors = array();
if(!is_array($headers)) $headers = (array)$headers;
$headers[] = "API-RemoteIP: " . zget($_SERVER, 'REMOTE_ADDR', '');
$headers[] = "API-RemoteIP: " . helper::getRemoteIp();
if($dataType == 'json')
{
$headers[] = 'Content-Type: application/json;charset=utf-8';