cfmgrv4 init...10

This commit is contained in:
최준흠 2026-02-11 10:40:22 +09:00
parent ae498d3f37
commit b945ff6f74

View File

@ -2,16 +2,17 @@
namespace App\Controllers\Admin\Cloudflare; namespace App\Controllers\Admin\Cloudflare;
use App\Entities\Cloudflare\AccountEntity; use RuntimeException;
use App\Helpers\Cloudflare\ZoneHelper;
use App\Models\Cloudflare\AccountModel;
use App\Services\Cloudflare\RecordService;
use App\Services\Cloudflare\ZoneService;
use CodeIgniter\HTTP\RedirectResponse;
use CodeIgniter\HTTP\RequestInterface;
use CodeIgniter\HTTP\ResponseInterface;
use Psr\Log\LoggerInterface; use Psr\Log\LoggerInterface;
use App\Services\MyLogService; use App\Services\MyLogService;
use App\Helpers\Cloudflare\ZoneHelper;
use CodeIgniter\HTTP\RedirectResponse;
use CodeIgniter\HTTP\RequestInterface;
use App\Models\Cloudflare\AccountModel;
use CodeIgniter\HTTP\ResponseInterface;
use App\Services\Cloudflare\ZoneService;
use App\Entities\Cloudflare\AccountEntity;
use App\Services\Cloudflare\RecordService;
class ZoneController extends CloudflareController class ZoneController extends CloudflareController
{ {
@ -88,6 +89,7 @@ class ZoneController extends CloudflareController
} }
protected function create_process(): void protected function create_process(): void
{ {
try {
//DB작업도 Socket에서 다 처리하므로 parent::create_process()하면 않됨 //DB작업도 Socket에서 다 처리하므로 parent::create_process()하면 않됨
$this->formDatas = $this->create_validate($this->action, $this->fields); $this->formDatas = $this->create_validate($this->action, $this->fields);
//부모데이터 정의 //부모데이터 정의
@ -151,6 +153,10 @@ class ZoneController extends CloudflareController
$entity->records = $record_entitys; $entity->records = $record_entitys;
} }
$this->entitys = $entitys; $this->entitys = $entitys;
} catch (\Throwable $e) {
log_message('debug', static::class . '->' . __FUNCTION__ . "에서 오류:" . $e->getMessage());
throw new RuntimeException(static::class . '->' . __FUNCTION__ . "에서 오류:" . $e->getMessage());
}
} }
//수정관련 (modify,toggle,batchjob사용) //수정관련 (modify,toggle,batchjob사용)