cfmgrv4 init...4
This commit is contained in:
parent
89090aafd5
commit
d8b75a3db6
@ -111,11 +111,14 @@ class Cloudflare extends BaseController
|
|||||||
if ($domain !== "") {
|
if ($domain !== "") {
|
||||||
$zone_model->where(['domain' => $domain]);
|
$zone_model->where(['domain' => $domain]);
|
||||||
}
|
}
|
||||||
|
$account_entitys = [];
|
||||||
$account_model = model(AccountModel::class);
|
$account_model = model(AccountModel::class);
|
||||||
$zone = new ZoneService();
|
$zone = new ZoneService();
|
||||||
foreach ($zone_model->getEntitys() as $entity) {
|
foreach ($zone_model->getEntitys() as $entity) {
|
||||||
$account_entity = $account_model->getEntity($entity->getParent());
|
if (!array_key_exists($entity->getParent(), $account_entitys)) {
|
||||||
$zone->expire($account_entity, $entity);
|
$account_entitys[$entity->getParent()] = $account_model->getEntity($entity->getParent());
|
||||||
|
}
|
||||||
|
$zone->expire($account_entitys[$entity->getParent()], $entity);
|
||||||
}
|
}
|
||||||
log_message("notice", "Expire 작업을 완료하였습니다.");
|
log_message("notice", "Expire 작업을 완료하였습니다.");
|
||||||
// $this->_db->transCommit();
|
// $this->_db->transCommit();
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user