mirror of
https://github.com/netcccyun/dnsmgr.git
synced 2026-07-06 07:56:31 +08:00
合并增强 Cloudflare 相关能力
This commit is contained in:
@@ -15,18 +15,8 @@ class Cloudflare extends BaseController
|
||||
{
|
||||
try {
|
||||
$context = $this->getCloudflareDomainContext(input('param.id/d'));
|
||||
$quickDomainOptions = $this->getManagedDomainOptions('cloudflare');
|
||||
if (empty($quickDomainOptions)) {
|
||||
$quickDomainOptions = [[
|
||||
'id' => intval($context['domain']['id']),
|
||||
'name' => $context['domain']['name'],
|
||||
'type' => 'cloudflare',
|
||||
'text' => $context['domain']['name'] . ' [Cloudflare]',
|
||||
]];
|
||||
}
|
||||
View::assign('domainId', $context['domain']['id']);
|
||||
View::assign('domainName', $context['domain']['name']);
|
||||
View::assign('quickDomainOptions', $quickDomainOptions);
|
||||
return view();
|
||||
} catch (Exception $e) {
|
||||
return $this->alert('error', $e->getMessage());
|
||||
|
||||
Reference in New Issue
Block a user