diff --git a/app/lib/deploy/wangsu.php b/app/lib/deploy/wangsu.php index f9cd555..6c63583 100644 --- a/app/lib/deploy/wangsu.php +++ b/app/lib/deploy/wangsu.php @@ -24,7 +24,7 @@ class wangsu implements DeployInterface public function check() { if (empty($this->username) || empty($this->apiKey)) throw new Exception('必填参数不能为空'); - $this->request('/cdn/certificates'); + $this->request('/api/ssl/certificate'); return true; } @@ -452,6 +452,9 @@ class wangsu implements DeployInterface } elseif (isset($result['message'])) { throw new Exception($result['message']); + } elseif (isset($result['result'])) { + throw new Exception($result['result']); + } else { throw new Exception('请求失败'); }