|
...
|
...
|
@@ -12,6 +12,7 @@ namespace App\Http\Logic\Bside\BCom; |
|
|
|
use App\Http\Logic\Bside\BaseLogic;
|
|
|
|
use App\Models\Ai\AiBlog;
|
|
|
|
use App\Models\Ai\AiVideo;
|
|
|
|
use App\Models\AuthorityScore\AuthorityScore;
|
|
|
|
use App\Models\RankData\RankDataBmseo;
|
|
|
|
use App\Models\SeoSetting\LinkData;
|
|
|
|
|
|
...
|
...
|
@@ -42,14 +43,8 @@ class AuthorityScoreLogic extends BaseLogic |
|
|
|
$bSeoModel = new RankDataBmseo();
|
|
|
|
$bSeoInfo = $bSeoModel->read(['project_id'=>$this->user['project_id'],'lang'=>''],['first_num','first_page_num','first_three_pages_num','first_five_pages_num','first_ten_pages_num','indexed_pages_num']);
|
|
|
|
$data['rank'] = $bSeoInfo;
|
|
|
|
$parsedUrl = parse_url($this->user['domain']);
|
|
|
|
$domain = $parsedUrl['host'];
|
|
|
|
$url = 'https://www.cmer.site/api/domain/organic?domain='.$domain;
|
|
|
|
try {
|
|
|
|
$data['sem'] = http_get($url)['data'];
|
|
|
|
}catch (\Exception $e){
|
|
|
|
$data['sem'] = [];
|
|
|
|
}
|
|
|
|
$authorityScoreModel = new AuthorityScore();
|
|
|
|
$data['authority_score'] = $authorityScoreModel->list(['project_id'=>$this->user['project_id']],'id',['*'],'desc',10);
|
|
|
|
$startTime = date('Y-m-01 00:00:00', strtotime($this->param['date']));
|
|
|
|
// 结束时间(当月最后一天)
|
|
|
|
$endTime = date('Y-m-t 23:59:59', strtotime($this->param['date']));
|
...
|
...
|
|