关键词 判断时间

hotfix/远程访问多媒体中心
lyt 8 years ago
parent 889f7328bd
commit 7a0a23b919

@ -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);
}

Loading…
Cancel
Save