作者 lyh

变更数据

@@ -126,7 +126,8 @@ class CountLogic extends BaseLogic @@ -126,7 +126,8 @@ class CountLogic extends BaseLogic
126 } 126 }
127 if(!empty($version) && ($version == '7.5')){ 127 if(!empty($version) && ($version == '7.5')){
128 $geoCountModel = new GeoCount(); 128 $geoCountModel = new GeoCount();
129 - $geoInfo = $geoCountModel->where('project_id',$this->user['project_id'])->where('date', '<=', date('Y-m-d'))->orderBy('date', 'desc')->first()->toArray(); 129 + $geoInfo = $geoCountModel->where('project_id',$this->user['project_id'])->where('date', '<=', date('Y-m-d'))->orderBy('date', 'desc')->first();
  130 + $geoInfo = $geoInfo ? $geoInfo->toArray() : [];
130 $data['geo_qualify_total'] = $geoInfo['qualify_total'] ?? 0; 131 $data['geo_qualify_total'] = $geoInfo['qualify_total'] ?? 0;
131 $data['total_count'] = ($this->project['deploy_build']['keyword_num'] ?? 0) + ($this->project['geo_qualify_day'] ?? 0); 132 $data['total_count'] = ($this->project['deploy_build']['keyword_num'] ?? 0) + ($this->project['geo_qualify_day'] ?? 0);
132 } 133 }