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,10 +19,8 @@ $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->group('admin', ['namespace' => 'App\Controllers\Admin', 'filter' => 'authFilter:manager'], function ($routes) {
$routes->get('/', 'Home::index');
$routes->group('user', function ($routes) {

View File

@ -82,11 +82,8 @@ 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();
}
}
public function reload(int $uid): RedirectResponse
{
return $this->reload_procedure($uid);

View File

@ -208,11 +208,8 @@ 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();
}
}
public function reload(string $uid): RedirectResponse
{
return $this->reload_procedure($uid);

View File

@ -243,11 +243,8 @@ 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();
}
}
public function reload(string $uid): RedirectResponse
{
return $this->reload_procedure($uid);