|
...
|
...
|
@@ -5,6 +5,8 @@ namespace App\Http\Logic\Bside\HomeCount; |
|
|
|
|
|
|
|
use App\Helper\FormGlobalsoApi;
|
|
|
|
use App\Http\Logic\Bside\BaseLogic;
|
|
|
|
use App\Models\Geo\GeoCount;
|
|
|
|
use App\Models\RankData\RankDataBmseo;
|
|
|
|
use App\Models\Template\BCustomTemplate;
|
|
|
|
use App\Models\Visit\Visit;
|
|
|
|
use App\Models\Visit\VisitItem;
|
|
...
|
...
|
@@ -102,11 +104,12 @@ class CountLogic extends BaseLogic |
|
|
|
*/
|
|
|
|
public function keyword_data_count(){
|
|
|
|
$version = $this->project['version'] ?? '';
|
|
|
|
if(!empty($version) && $version != '7.5'){
|
|
|
|
|
|
|
|
}
|
|
|
|
$yesterday = date('Y-m-d');
|
|
|
|
$rankDataModel = new RankDataModel();
|
|
|
|
if($this->user['project_seo_type'] == 1){
|
|
|
|
$rankDataModel = new RankDataBmseo();
|
|
|
|
}else{
|
|
|
|
$rankDataModel = new RankDataModel();
|
|
|
|
}
|
|
|
|
$param = [
|
|
|
|
'updated_date' => $yesterday,
|
|
|
|
'project_id' => $this->user['project_id']
|
|
...
|
...
|
@@ -121,6 +124,13 @@ class CountLogic extends BaseLogic |
|
|
|
$data = [];
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if(!empty($version) && ($version == '7.5')){
|
|
|
|
$geoCountModel = new GeoCount();
|
|
|
|
$geoInfo = $geoCountModel->where('project_id',$this->user['project_id'])->where('date', '<=', date('Y-m-d'))->orderBy('date', 'desc')->first();
|
|
|
|
$geoInfo = $geoInfo ? $geoInfo->toArray() : [];
|
|
|
|
$data['geo_qualify_total'] = $geoInfo['qualify_total'] ?? 0;
|
|
|
|
$data['total_count'] = ($this->project['deploy_build']['keyword_num'] ?? 0) + ($this->project['geo_qualify_num'] ?? 0);
|
|
|
|
}
|
|
|
|
return $this->success($data);
|
|
|
|
}
|
|
|
|
|
...
|
...
|
|