cfmgrv4 init...4
This commit is contained in:
parent
0178a6edc5
commit
23aed573d3
@ -33,7 +33,7 @@ class ZoneService extends CloudflareService
|
|||||||
private function setParentEntity(AccountEntity $parent_entity): void
|
private function setParentEntity(AccountEntity $parent_entity): void
|
||||||
{
|
{
|
||||||
$this->_parent_entity = $parent_entity;
|
$this->_parent_entity = $parent_entity;
|
||||||
$auth_entity = $this->getAuthModel()->getEntityByPK(uid: $this->getParentEntity()->getParent());
|
$auth_entity = $this->getAuthModel()->getEntityByPK($this->getParentEntity()->getParent());
|
||||||
if ($auth_entity === null) {
|
if ($auth_entity === null) {
|
||||||
throw new \Exception("해당 계정정보를 찾을수 없습니다.");
|
throw new \Exception("해당 계정정보를 찾을수 없습니다.");
|
||||||
}
|
}
|
||||||
@ -160,10 +160,8 @@ class ZoneService extends CloudflareService
|
|||||||
}
|
}
|
||||||
public function expire(AccountEntity $parent_entity, ZoneEntity $entity): ZoneEntity
|
public function expire(AccountEntity $parent_entity, ZoneEntity $entity): ZoneEntity
|
||||||
{
|
{
|
||||||
$endpoint = "accounts/{$entity->getParent()}/registrar/domains/{$entity->getTitle()}";
|
|
||||||
log_message("debug", $endpoint);
|
|
||||||
$this->setParentEntity($parent_entity);
|
$this->setParentEntity($parent_entity);
|
||||||
$response = $this->getMySocket()->get($endpoint);
|
$response = $this->getMySocket()->get("accounts/{$entity->getParent()}/registrar/domains/{$entity->getTitle()}");
|
||||||
$body = json_decode($response->getBody());
|
$body = json_decode($response->getBody());
|
||||||
$formDatas = ['expire_date', $body->result->expires_at];
|
$formDatas = ['expire_date', $body->result->expires_at];
|
||||||
// log_message("debug", var_export($formDatas, true));
|
// log_message("debug", var_export($formDatas, true));
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user