cfmgrv4 init...2
This commit is contained in:
parent
445dfd7cb0
commit
b18f09d4e7
@ -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');
|
||||
|
||||
@ -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
|
||||
{
|
||||
|
||||
@ -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
|
||||
{
|
||||
|
||||
@ -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
|
||||
{
|
||||
|
||||
Loading…
Reference in New Issue
Block a user