cfmgrv4 init...2

This commit is contained in:
최준흠 2024-10-11 12:49:34 +09:00
parent 445dfd7cb0
commit b18f09d4e7
4 changed files with 4 additions and 15 deletions

View File

@ -19,9 +19,7 @@ $routes->group('/user', function ($routes) {
$routes->get('logout', 'UserController::logout');
});
$routes->group('cli', ['namespace' => 'App\CLI'], function ($routes) {
$routes->group('cloudflare', ['namespace' => 'App\CLI\Cloudflare'], function ($routes) {
$routes->cli('reload', 'Cloudflare::reload');
});
$routes->cli('reload', 'Cloudflare::reload');
});
$routes->group('admin', ['namespace' => 'App\Controllers\Admin', 'filter' => 'authFilter:manager'], function ($routes) {
$routes->get('/', 'Home::index');

View File

@ -82,10 +82,7 @@ class AccountController extends CloudflareController
if ($this->_auth_entity === null) {
throw new \Exception("Auth: {$uid} 정보를 찾을수 없습니다.");
}
$this->getModel()->where($this->getModel()::PARENT, $this->_auth_entity->getPK());
foreach ($this->getModel()->getEntitys() as $entity) {
$this->getMyLibrary()->reload();
}
$this->getMyLibrary()->reload();
}
public function reload(int $uid): RedirectResponse
{

View File

@ -208,10 +208,7 @@ class RecordController extends CloudflareController
if ($this->_zone_entity === null) {
throw new \Exception("Zone: {$uid} 정보를 찾을수 없습니다.");
}
$this->getModel()->where($this->getModel()::PARENT, $this->_zone_entity->getPK());
foreach ($this->getModel()->getEntitys() as $entity) {
$this->getMyLibrary()->reload();
}
$this->getMyLibrary()->reload();
}
public function reload(string $uid): RedirectResponse
{

View File

@ -243,10 +243,7 @@ class ZoneController extends CloudflareController
if ($this->_account_entity === null) {
throw new \Exception("Account: {$uid} 정보를 찾을수 없습니다.");
}
$this->getModel()->where($this->getModel()::PARENT, $this->_account_entity->getPK());
foreach ($this->getModel()->getEntitys() as $entity) {
$this->getMyLibrary()->reload();
}
$this->getMyLibrary()->reload();
}
public function reload(string $uid): RedirectResponse
{