diff --git a/app/common.php b/app/common.php index 5582abe..2719cd1 100644 --- a/app/common.php +++ b/app/common.php @@ -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('域名到期时间未知'); } diff --git a/app/lib/deploy/lecdn.php b/app/lib/deploy/lecdn.php index 83b545b..45cdc4f 100644 --- a/app/lib/deploy/lecdn.php +++ b/app/lib/deploy/lecdn.php @@ -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);