正在显示
1 个修改的文件
包含
2 行增加
和
1 行删除
| @@ -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 | } |
-
请 注册 或 登录 后发表评论