diff --git a/src/index.ts b/src/index.ts index 9a93516..d8e69d1 100644 --- a/src/index.ts +++ b/src/index.ts @@ -161,13 +161,20 @@ async function noticeAtri(options: CommonOptions) { } /** - * https://sct.ftqq.com/ + * Turbo: https://sct.ftqq.com/ + * V3: https://sc3.ft07.com/ */ async function noticeServerChan(options: CommonOptions) { checkParameters(options, ['token', 'content']); let url: string; let param: URLSearchParams; - if (options.token.substring(0, 3).toLowerCase() === 'sct') { + if (options.token.startsWith('sctp')) { + url = `https://${options.token.match(/^sctp(\d+)t/)[1]}.push.ft07.com/send`; + param = new URLSearchParams({ + title: options.title || getTitle(options.content), + desp: options.content, + }); + } else if (options.token.substring(0, 3).toLowerCase() === 'sct') { url = 'https://sctapi.ftqq.com'; param = new URLSearchParams({ title: options.title || getTitle(options.content),