cfmgrv4 init...4
This commit is contained in:
parent
47a1bf693d
commit
22e5c43d1f
@ -124,18 +124,17 @@ class ZoneController extends CloudflareController
|
||||
}
|
||||
//Socket처리
|
||||
//Zone생성
|
||||
$cnt = 1;
|
||||
$entitys = [];
|
||||
foreach ($domains as $domain) {
|
||||
$entitys[] = $this->getService()->create($this->_account_entity, $domain);
|
||||
$cnt++;
|
||||
$entity = $this->getService()->create($this->_account_entity, $domain);
|
||||
$entitys[] = $entity;
|
||||
}
|
||||
//Record생성
|
||||
$record = new RecordService();
|
||||
foreach ($entitys as $entity) {
|
||||
$entity->records = [];
|
||||
$record_entitys = [];
|
||||
foreach ($hosts as $host) {
|
||||
$entity->records[] = $record->create(
|
||||
$record_entitys[] = $record->create(
|
||||
$entity,
|
||||
$host,
|
||||
$this->formDatas['type'],
|
||||
@ -143,6 +142,7 @@ class ZoneController extends CloudflareController
|
||||
$this->formDatas['proxied']
|
||||
);
|
||||
}
|
||||
$entity->records = $record_entitys;
|
||||
}
|
||||
$this->entitys = $entitys;
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user