cfmgrv4 init...4
This commit is contained in:
parent
95ac22ec14
commit
47a1bf693d
@ -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,
|
||||
|
||||
Loading…
Reference in New Issue
Block a user