修复lecdn部署

This commit is contained in:
net909 2025-05-31 19:11:40 +08:00
parent f776b9f47f
commit 0015015b7a
2 changed files with 2 additions and 1 deletions

View File

@ -500,7 +500,7 @@ function getDomainDate($domain)
$info = $whois->loadDomainInfo($domain);
if ($info) {
if ($info->expirationDate > 0) {
return [date('Y-m-d H:i:s', $info->creationDate), date('Y-m-d H:i:s', $info->expirationDate)];
return [$info->creationDate > 0 ? date('Y-m-d H:i:s', $info->creationDate) : null, date('Y-m-d H:i:s', $info->expirationDate)];
} else {
throw new Exception('域名到期时间未知');
}

View File

@ -59,6 +59,7 @@ class lecdn implements DeployInterface
$path = '/prod-api/login';
$params = [
'email' => $this->email,
'username' => $this->email,
'password' => $this->password,
];
$result = $this->request($path, $params);