作者 李宇航

合并分支 'lyh-server' 到 'master'

Lyh server



查看合并请求 !2986
@@ -127,6 +127,7 @@ class CountLogic extends BaseLogic @@ -127,6 +127,7 @@ class CountLogic extends BaseLogic
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(); 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 }