cfmgrv4 init...4

This commit is contained in:
최준흠 2024-10-29 17:29:54 +09:00
parent 95ac22ec14
commit 47a1bf693d

View File

@ -126,16 +126,15 @@ class ZoneController extends CloudflareController
//Zone생성 //Zone생성
$cnt = 1; $cnt = 1;
$entitys = []; $entitys = [];
foreach ($this->formDatas['domains'] as $domain) { foreach ($domains as $domain) {
$entity = $this->getService()->create($this->_account_entity, $domain); $entitys[] = $this->getService()->create($this->_account_entity, $domain);
$entitys[] = $entity;
$cnt++; $cnt++;
} }
//Record생성 //Record생성
$record = new RecordService();
foreach ($entitys as $entity) { foreach ($entitys as $entity) {
$entity->records = []; $entity->records = [];
$record = new RecordService(); foreach ($hosts as $host) {
foreach ($this->formDatas['hosts'] as $host) {
$entity->records[] = $record->create( $entity->records[] = $record->create(
$entity, $entity,
$host, $host,