Merge branch 'master' of http://47.244.231.31:8099/zhl/globalso-v6
正在显示
4 个修改的文件
包含
37 行增加
和
5 行删除
| @@ -81,14 +81,30 @@ class DomainInfo extends Command | @@ -81,14 +81,30 @@ class DomainInfo extends Command | ||
| 81 | continue; | 81 | continue; |
| 82 | } | 82 | } |
| 83 | 83 | ||
| 84 | + if ($servers_ip_info['servers_id'] == ServerConfig::SELF_SITE_ID) { | ||
| 85 | + //自建站项目,直接获取主站证书有效期并更新 | ||
| 86 | + $ssl_time = $this->getDomainSslTime($v['domain']); | ||
| 87 | + if ($ssl_time['from'] && $ssl_time['to']) { | ||
| 88 | + $v->certificate_start_time = $ssl_time['from']; | ||
| 89 | + $v->certificate_end_time = $ssl_time['to']; | ||
| 90 | + $v->save(); | ||
| 91 | + } | ||
| 92 | + | ||
| 93 | + if (empty($v['domain_end_time']) || $v['domain_end_time'] < date('Y-m-d H:i:s')) { | ||
| 94 | + //获取主站域名有效期并更新 | ||
| 95 | + $valid_time = $this->getDomainValidTime($v['domain']); | ||
| 96 | + if ($valid_time['start'] && $valid_time['end']) { | ||
| 97 | + $v->domain_start_time = $valid_time['start']; | ||
| 98 | + $v->domain_end_time = $valid_time['end']; | ||
| 99 | + $v->save(); | ||
| 100 | + } | ||
| 101 | + } | ||
| 102 | + } else { | ||
| 84 | //除自建站项目外,记录已解析到别的ip的域名 | 103 | //除自建站项目外,记录已解析到别的ip的域名 |
| 85 | - if ($servers_ip_info['servers_id'] != ServerConfig::SELF_SITE_ID) { | ||
| 86 | - //过滤已解析到别的ip的域名 | ||
| 87 | if (!check_domain_record($v['domain'], $servers_ip_info)) { | 104 | if (!check_domain_record($v['domain'], $servers_ip_info)) { |
| 88 | Log::channel('analyze_other')->error('域名 [' . $v['domain'] . '] 已解析到别的IP'); | 105 | Log::channel('analyze_other')->error('域名 [' . $v['domain'] . '] 已解析到别的IP'); |
| 89 | continue; | 106 | continue; |
| 90 | } | 107 | } |
| 91 | - } | ||
| 92 | 108 | ||
| 93 | //判断是否已经建站 | 109 | //判断是否已经建站 |
| 94 | if ($project_info['project_type'] == Project::PROJECT_TYPE_SEO) { | 110 | if ($project_info['project_type'] == Project::PROJECT_TYPE_SEO) { |
| @@ -148,6 +164,7 @@ class DomainInfo extends Command | @@ -148,6 +164,7 @@ class DomainInfo extends Command | ||
| 148 | } | 164 | } |
| 149 | } | 165 | } |
| 150 | } | 166 | } |
| 167 | + } | ||
| 151 | 168 | ||
| 152 | /** | 169 | /** |
| 153 | * 主站证书到期更新 | 170 | * 主站证书到期更新 |
| @@ -23,6 +23,7 @@ use App\Models\Devops\ServersIp; | @@ -23,6 +23,7 @@ use App\Models\Devops\ServersIp; | ||
| 23 | use App\Models\Domain\DomainCreateTask; | 23 | use App\Models\Domain\DomainCreateTask; |
| 24 | use App\Models\Domain\DomainInfo; | 24 | use App\Models\Domain\DomainInfo; |
| 25 | use App\Models\Domain\DomainInfo as DomainInfoModel; | 25 | use App\Models\Domain\DomainInfo as DomainInfoModel; |
| 26 | +use App\Models\Geo\GeoLink; | ||
| 26 | use App\Models\HomeCount\Count; | 27 | use App\Models\HomeCount\Count; |
| 27 | use App\Models\Industry\ProjectIndustry; | 28 | use App\Models\Industry\ProjectIndustry; |
| 28 | use App\Models\Inquiry\InquirySet; | 29 | use App\Models\Inquiry\InquirySet; |
| @@ -329,6 +330,15 @@ class ProjectController extends BaseController | @@ -329,6 +330,15 @@ class ProjectController extends BaseController | ||
| 329 | if(isset($this->map['project_type'])){ | 330 | if(isset($this->map['project_type'])){ |
| 330 | $query = $query->where('gl_project.project_type',$this->map['project_type']); | 331 | $query = $query->where('gl_project.project_type',$this->map['project_type']); |
| 331 | } | 332 | } |
| 333 | + if(isset($this->param['geo'])){ | ||
| 334 | + if($this->param['geo'] == 1){ | ||
| 335 | + $query = $query->where('gl_project.geo_status',1); | ||
| 336 | + }else{ | ||
| 337 | + $ids = GeoLink::pluck('project_id')->unique()->values()->all(); | ||
| 338 | + $query = $query->whereIn('gl_project.id',$ids); | ||
| 339 | + } | ||
| 340 | + | ||
| 341 | + } | ||
| 332 | return $query; | 342 | return $query; |
| 333 | } | 343 | } |
| 334 | 344 |
| @@ -44,7 +44,10 @@ class AiVideoTask extends Base | @@ -44,7 +44,10 @@ class AiVideoTask extends Base | ||
| 44 | */ | 44 | */ |
| 45 | public function videoFrequency(){ | 45 | public function videoFrequency(){ |
| 46 | return [ | 46 | return [ |
| 47 | - 1 => '5-7', | 47 | + 1 => '3-4', |
| 48 | + 2 => '5-7', | ||
| 49 | + 3 => '7-10', | ||
| 50 | + 2 => '10-15', | ||
| 48 | ]; | 51 | ]; |
| 49 | } | 52 | } |
| 50 | } | 53 | } |
-
请 注册 或 登录 后发表评论