|
...
|
...
|
@@ -10,7 +10,6 @@ use App\Models\Domain\DomainInfo; |
|
|
|
use App\Models\Product\KeywordRelated;
|
|
|
|
use App\Models\Product\Product;
|
|
|
|
use App\Models\Project\Project;
|
|
|
|
use App\Models\WebSetting\WebLanguage;
|
|
|
|
use App\Services\BatchExportService;
|
|
|
|
use App\Services\ProjectServer;
|
|
|
|
use Illuminate\Console\Command;
|
|
...
|
...
|
@@ -63,6 +62,15 @@ class Temp extends Command |
|
|
|
}
|
|
|
|
$domain = $domain_info['domain'];
|
|
|
|
|
|
|
|
//获取项目所在服务器
|
|
|
|
$serve_ip_info = $server_ip_model->read(['id' => $value->serve_id], ['domain', 'ip']);
|
|
|
|
if (!$serve_ip_info) {
|
|
|
|
continue;
|
|
|
|
}
|
|
|
|
if (!check_domain_record($domain, $serve_ip_info)) {
|
|
|
|
continue;
|
|
|
|
}
|
|
|
|
|
|
|
|
//获取最新一条小语种生成任务
|
|
|
|
$notify = $notify_model->read(['project_id' => $value->id, 'type' => 2, 'status' => 3, 'route' => 1], ['id']);
|
|
|
|
if (!$notify) {
|
|
...
|
...
|
@@ -72,9 +80,9 @@ class Temp extends Command |
|
|
|
|
|
|
|
$url = 'https://' . $domain . '/fr';
|
|
|
|
$code = check_curl_status($url);
|
|
|
|
$html = curl_c($url);
|
|
|
|
$html = curl_c($url, false);
|
|
|
|
$is_404 = false;
|
|
|
|
if (strpos($html, 'Sorry. The page has either moved or cannot be found.') !== false) {
|
|
|
|
if (strpos(strtolower($html), 'sorry. the page has either moved or cannot be found.') !== false) {
|
|
|
|
$is_404 = true;
|
|
|
|
}
|
|
|
|
$data[] = [
|
...
|
...
|
|