Commit c76e0382 authored by zhangkuanguang's avatar zhangkuanguang

芜湖

parent 4fe326e5
...@@ -243,7 +243,9 @@ class statistics { ...@@ -243,7 +243,9 @@ class statistics {
function get_dayclickcount($day , $uid , $app = 'sell') function get_dayclickcount($day , $uid , $app = 'sell')
{ {
$mem_key = GB_CITY.'_statistics_get_dayclickcount2_'.$day.'_'.$app.'_'.$uid.'v3'; $mem_key = GB_CITY.'_statistics_get_dayclickcount2_'.$day.'_'.$app.'_'.$uid.'v3';
//$this->mc->delete($mem_key); if($_COOKIE['update']){
$this->mc->delete($mem_key);
}
$cache = $this->mc->get($mem_key); $cache = $this->mc->get($mem_key);
$click_info = array(); $click_info = array();
...@@ -254,9 +256,7 @@ class statistics { ...@@ -254,9 +256,7 @@ class statistics {
else else
{ {
$url = NewStatisticsUrl."/click?type=getClickUIDHourCount&city=".GB_CITY."&day=".$day."&app=".$app."&uid=".$uid; $url = NewStatisticsUrl."/click?type=getClickUIDHourCount&city=".GB_CITY."&day=".$day."&app=".$app."&uid=".$uid;
$strData = $this->curl_get_contents($url); $strData = $this->curl_get_contents($url);
$click_info = $this->json_decode($strData); $click_info = $this->json_decode($strData);
$click_info_new =array(); $click_info_new =array();
...@@ -1025,7 +1025,11 @@ class statistics { ...@@ -1025,7 +1025,11 @@ class statistics {
function curl_get_contents($str,$t_url="") function curl_get_contents($str,$t_url="")
{ {
$memkey = md5($str); $memkey = md5($str);
if($_COOKIE['update']){
$this->mc->delete($memkey);
}
$cache = $this->mc->get($memkey); $cache = $this->mc->get($memkey);
//$this->mc->delete($memkey); //$this->mc->delete($memkey);
if($cache['isok'] == 1) if($cache['isok'] == 1)
{ {
......
...@@ -896,6 +896,10 @@ class Statistics_model extends MY_Model ...@@ -896,6 +896,10 @@ class Statistics_model extends MY_Model
if( $uid > 0) if( $uid > 0)
{ {
$mem_key = $this->_mem_key .'_get_broker_clickdata_3_'.$uid.'_'.$start_day.'_'.$end_day.'_'.$order_key.'_'.$order_by; $mem_key = $this->_mem_key .'_get_broker_clickdata_3_'.$uid.'_'.$start_day.'_'.$end_day.'_'.$order_key.'_'.$order_by;
if($_COOKIE['update']){
$this->mc->delete($mem_key);
}
$cache = $this->mc->get($mem_key); $cache = $this->mc->get($mem_key);
if(isset($cache['is_ok']) && $cache['is_ok'] == 1) if(isset($cache['is_ok']) && $cache['is_ok'] == 1)
{ {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment