From 7a0a23b919614298aacb81f610a63335c357c7cc Mon Sep 17 00:00:00 2001 From: lyt Date: Mon, 30 Oct 2017 14:06:32 +0800 Subject: [PATCH] =?UTF-8?q?=E5=85=B3=E9=94=AE=E8=AF=8D=20=E5=88=A4?= =?UTF-8?q?=E6=96=AD=E6=97=B6=E9=97=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- application/controllers/keyworlds.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/application/controllers/keyworlds.php b/application/controllers/keyworlds.php index 4a0e7cbf..097afd2f 100644 --- a/application/controllers/keyworlds.php +++ b/application/controllers/keyworlds.php @@ -284,7 +284,7 @@ class Keyworlds extends CI_Controller { echo json_encode($data); return TRUE; } else if (empty($last_rank[0]->kwr_mobile_rank) && - intval($last_rank[0]->kwr_datetime) > intval($today)) { + (intval($last_rank[0]->kwr_datetime) - intval($today)) >= 0 ) { $client_flag = 'm'; $rank_flag = 'rank_m'; $source_flag = 'source_m'; @@ -351,7 +351,7 @@ class Keyworlds extends CI_Controller { $client_flag = "PC"; $rank_flag = 'rank'; $source_flag = 'source'; - if (intval($worldsList[0]->kwr_datetime) >= intval($today) ) { + if ((intval($worldsList[0]->kwr_datetime) - intval($today)) >= 0 ) { $client_flag = "m"; $rank_flag = 'rank_m'; $source_flag = 'source_m'; @@ -651,8 +651,8 @@ class Keyworlds extends CI_Controller { curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false); curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, false); curl_setopt($ch, CURLOPT_USERAGENT, $useragent); - curl_setopt($ch, CURLOPT_PROXYTYPE, CURLPROXY_SOCKS5_HOSTNAME); - curl_setopt($ch, CURLOPT_PROXY, "202.103.68.28:11111"); // 本地代理 + // curl_setopt($ch, CURLOPT_PROXYTYPE, CURLPROXY_SOCKS5_HOSTNAME); + // curl_setopt($ch, CURLOPT_PROXY, "202.103.68.28:11111"); // 本地代理 if ($referer) { curl_setopt($ch, CURLOPT_REFERER, $referer); }