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생성
$cnt = 1;
$entitys = [];
foreach ($this->formDatas['domains'] as $domain) {
$entity = $this->getService()->create($this->_account_entity, $domain);
$entitys[] = $entity;
foreach ($domains as $domain) {
$entitys[] = $this->getService()->create($this->_account_entity, $domain);
$cnt++;
}
//Record생성
$record = new RecordService();
foreach ($entitys as $entity) {
$entity->records = [];
$record = new RecordService();
foreach ($this->formDatas['hosts'] as $host) {
foreach ($hosts as $host) {
$entity->records[] = $record->create(
$entity,
$host,