mirror of
https://github.com/certd/certd.git
synced 2026-04-14 20:40:53 +08:00
chore: 1
This commit is contained in:
@@ -37,7 +37,7 @@ export class SpaceshipAccess extends BaseAccess {
|
||||
name: "api-test",
|
||||
action: "TestRequest"
|
||||
},
|
||||
helper: "测试 API 连接是否正常"
|
||||
helper: "测试 API 连接是否正常,需要域名查询权限"
|
||||
})
|
||||
testRequest = true;
|
||||
|
||||
@@ -48,7 +48,7 @@ export class SpaceshipAccess extends BaseAccess {
|
||||
|
||||
async doRequest(options: {
|
||||
url: string;
|
||||
method: 'GET' | 'POST' | 'DELETE';
|
||||
method: 'GET' | 'POST' | 'DELETE' | 'PUT';
|
||||
params?: any;
|
||||
data?: any;
|
||||
}) {
|
||||
|
||||
@@ -28,8 +28,9 @@ export class SpaceshipProvider extends AbstractDnsProvider<SpaceshipRecord> {
|
||||
await this.access.getDomainInfo(domain);
|
||||
|
||||
const recordRes = await this.access.doRequest({
|
||||
// https://spaceship.dev/api/v1/dns/records/{domain}
|
||||
url: `https://spaceship.dev/api/v1/dns/records/${domain}`,
|
||||
method: "POST",
|
||||
method: "PUT",
|
||||
data: {
|
||||
force: false,
|
||||
items: [
|
||||
|
||||
Reference in New Issue
Block a user