cfmgrv4 init...2
This commit is contained in:
parent
d62c25888d
commit
21809f5acf
@ -55,20 +55,18 @@ class Cloudflare extends BaseController
|
|||||||
$this->_db->transStart();
|
$this->_db->transStart();
|
||||||
try {
|
try {
|
||||||
$auths = $this->auth_process($uid);
|
$auths = $this->auth_process($uid);
|
||||||
$accounts = [];
|
|
||||||
foreach ($auths as $auth) {
|
foreach ($auths as $auth) {
|
||||||
$accounts += $this->account_process($auth);
|
$accounts = $this->account_process($auth);
|
||||||
}
|
}
|
||||||
log_message("debug", "\n-------------총 Accounts:" . count($accounts) . "--------------------\n");
|
log_message("debug", "\n-------------총 Accounts:" . count($accounts) . "--------------------\n");
|
||||||
$zones = [];
|
|
||||||
foreach ($accounts as $key => $account) {
|
foreach ($accounts as $key => $account) {
|
||||||
$zones += $this->zone_process($account);
|
$zones = $this->zone_process($account);
|
||||||
}
|
}
|
||||||
log_message("debug", "\n-------------총 Zones:" . count($zones) . "--------------------\n");
|
log_message("debug", "\n-------------총 Zones:" . count($zones) . "--------------------\n");
|
||||||
// foreach ($zones as $key => $zone) {
|
foreach ($zones as $key => $zone) {
|
||||||
// $this->record_process($zone);
|
$this->record_process($zone);
|
||||||
// }
|
}
|
||||||
// log_message("notice", "Reload 작업을 완료하였습니다.");
|
log_message("notice", "Reload 작업을 완료하였습니다.");
|
||||||
$this->_db->transCommit();
|
$this->_db->transCommit();
|
||||||
} catch (\Exception $e) {
|
} catch (\Exception $e) {
|
||||||
//Transaction Rollback
|
//Transaction Rollback
|
||||||
@ -76,8 +74,8 @@ class Cloudflare extends BaseController
|
|||||||
log_message(
|
log_message(
|
||||||
"error",
|
"error",
|
||||||
"Reload 작업을 실패하였습니다.\n--------------\n" .
|
"Reload 작업을 실패하였습니다.\n--------------\n" .
|
||||||
$e->getMessage() .
|
$e->getMessage() .
|
||||||
"\n--------------\n"
|
"\n--------------\n"
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user