...
|
...
|
@@ -61,17 +61,17 @@ public function handle() |
|
|
|
|
|
// 未生成ssl 申请ssl
|
|
|
if ($val->ssl_status == 0) {
|
|
|
$result = app(BtRepository::class)->applySsl($sites->domain);
|
|
|
$result = app(BtRepository::class)->applySsl($val->domain);
|
|
|
if (empty($result))
|
|
|
BtEvents::createBtEvent(BtEvents::TYPE_CREATE_SSL, json_encode(['host' => $sites->domain]));
|
|
|
BtEvents::createBtEvent(BtEvents::TYPE_CREATE_SSL, json_encode(['host' => $val->domain]));
|
|
|
continue;
|
|
|
}
|
|
|
|
|
|
// 开启ssl续签 检查是否到期进行续签
|
|
|
if ($val->ssl_auto) {
|
|
|
$result = app(BtRepository::class)->renewalSsl($sites->domain);
|
|
|
$result = app(BtRepository::class)->renewalSsl($val->domain);
|
|
|
if (empty($result))
|
|
|
BtEvents::createBtEvent(BtEvents::TYPE_RENEWAL_SSL, json_encode(['host' => $sites->domain]));
|
|
|
BtEvents::createBtEvent(BtEvents::TYPE_RENEWAL_SSL, json_encode(['host' => $val->domain]));
|
|
|
continue;
|
|
|
}
|
|
|
|
...
|
...
|
|