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