作者 lyh

gx日记录数据

@@ -179,7 +179,7 @@ class CountLogic extends BaseLogic @@ -179,7 +179,7 @@ class CountLogic extends BaseLogic
179 $result =array(); 179 $result =array();
180 if(!empty($data)){ 180 if(!empty($data)){
181 foreach ($data as $k => $v){ 181 foreach ($data as $k => $v){
182 - if(($this->project['is_record_china_visit'] != 1) && ($v['country'] == '中国')){ 182 + if(isset($v['country']) && isset($this->project['is_record_china_visit']) && ($this->project['is_record_china_visit'] != 1) && ($v['country'] == '中国')){
183 continue; 183 continue;
184 }else{ 184 }else{
185 $v['pv'] = (int)$v['pv']; 185 $v['pv'] = (int)$v['pv'];