作者 周海龙

合并分支 'zhl' 到 'master'

u



查看合并请求 !2
@@ -114,6 +114,7 @@ public function createSiteEvent($id, $param) @@ -114,6 +114,7 @@ public function createSiteEvent($id, $param)
114 $ssl_auto_day = $ssl_auto_day > 15 ? 15 : max($ssl_auto_day, 5); 114 $ssl_auto_day = $ssl_auto_day > 15 ? 15 : max($ssl_auto_day, 5);
115 if (empty($domain) || FALSE == filter_var($domain, FILTER_VALIDATE_URL)) { 115 if (empty($domain) || FALSE == filter_var($domain, FILTER_VALIDATE_URL)) {
116 if (FALSE == empty($callback) && filter_var($callback, FILTER_VALIDATE_URL)) { 116 if (FALSE == empty($callback) && filter_var($callback, FILTER_VALIDATE_URL)) {
  117 + $param['result_status'] = 400;
117 $param['result_message'] = 'domain信息错误'; 118 $param['result_message'] = 'domain信息错误';
118 BtEvents::createBtEvent(BtEvents::TYPE_EVENT_CALLBACK, json_encode($param)); 119 BtEvents::createBtEvent(BtEvents::TYPE_EVENT_CALLBACK, json_encode($param));
119 } 120 }
@@ -61,17 +61,17 @@ public function handle() @@ -61,17 +61,17 @@ public function handle()
61 61
62 // 未生成ssl 申请ssl 62 // 未生成ssl 申请ssl
63 if ($val->ssl_status == 0) { 63 if ($val->ssl_status == 0) {
64 - $result = app(BtRepository::class)->applySsl($sites->domain); 64 + $result = app(BtRepository::class)->applySsl($val->domain);
65 if (empty($result)) 65 if (empty($result))
66 - BtEvents::createBtEvent(BtEvents::TYPE_CREATE_SSL, json_encode(['host' => $sites->domain])); 66 + BtEvents::createBtEvent(BtEvents::TYPE_CREATE_SSL, json_encode(['host' => $val->domain]));
67 continue; 67 continue;
68 } 68 }
69 69
70 // 开启ssl续签 检查是否到期进行续签 70 // 开启ssl续签 检查是否到期进行续签
71 if ($val->ssl_auto) { 71 if ($val->ssl_auto) {
72 - $result = app(BtRepository::class)->renewalSsl($sites->domain); 72 + $result = app(BtRepository::class)->renewalSsl($val->domain);
73 if (empty($result)) 73 if (empty($result))
74 - BtEvents::createBtEvent(BtEvents::TYPE_RENEWAL_SSL, json_encode(['host' => $sites->domain])); 74 + BtEvents::createBtEvent(BtEvents::TYPE_RENEWAL_SSL, json_encode(['host' => $val->domain]));
75 continue; 75 continue;
76 } 76 }
77 77