|
...
|
...
|
@@ -412,7 +412,7 @@ class Temp extends Command |
|
|
|
$data['status'] = Notify::STATUS_INIT;
|
|
|
|
$notify_model->add($data);
|
|
|
|
|
|
|
|
$this->output('项目id:' . $project_id . ' | success');
|
|
|
|
$this->output('项目id:' . $project_id . ', domain:' . $domain . ' | success');
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
...
|
...
|
@@ -444,21 +444,19 @@ class Temp extends Command |
|
|
|
}
|
|
|
|
$amp_domain = implode('.', $host_array);
|
|
|
|
|
|
|
|
$this->output('项目id:' . $project_id . ',start');
|
|
|
|
|
|
|
|
//获取项目所在服务器
|
|
|
|
$project_info = $project_model->read(['id' => $project_id], ['serve_id']);
|
|
|
|
if (!$project_info) {
|
|
|
|
$this->output('未查询到项目数据');
|
|
|
|
$this->output('项目id:' . $project_id . ' | 未查询到项目数据');
|
|
|
|
continue;
|
|
|
|
}
|
|
|
|
$serve_ip_info = $serve_ip_model->read(['id' => $project_info['serve_id']], ['servers_id', 'domain', 'ip']);
|
|
|
|
if (!$serve_ip_info) {
|
|
|
|
$this->output('未查询到服务器数据');
|
|
|
|
$this->output('项目id:' . $project_id . ' | 未查询到服务器数据');
|
|
|
|
continue;
|
|
|
|
}
|
|
|
|
if (!check_domain_record($amp_domain, $serve_ip_info)) {
|
|
|
|
$this->output('未解析到目标服务器');
|
|
|
|
$this->output('项目id:' . $project_id . ', domain:' . $domain . ' | 未解析到目标服务器');
|
|
|
|
continue;
|
|
|
|
}
|
|
|
|
|
|
...
|
...
|
@@ -478,7 +476,7 @@ class Temp extends Command |
|
|
|
$notify_model->add($data);
|
|
|
|
}
|
|
|
|
|
|
|
|
$this->output('项目id:' . $project_id . ',end');
|
|
|
|
$this->output('项目id:' . $project_id . ', domain:' . $domain . ' | success');
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
...
|
...
|
|