mirror of
https://github.com/whyour/qinglong.git
synced 2026-07-01 04:40:38 +08:00
适配Server酱APP分支(Server酱³),移除已废弃的旧版api入口 (#2524)
This commit is contained in:
+3
-3
@@ -225,9 +225,9 @@ function serverNotify(text, desp) {
|
||||
// 微信server酱推送通知一个\n不会换行,需要两个\n才能换行,故做此替换
|
||||
desp = desp.replace(/[\n\r]/g, '\n\n');
|
||||
const options = {
|
||||
url: PUSH_KEY.includes('SCT')
|
||||
? `https://sctapi.ftqq.com/${PUSH_KEY}.send`
|
||||
: `https://sc.ftqq.com/${PUSH_KEY}.send`,
|
||||
url: PUSH_KEY.startsWith('sctp')
|
||||
? `https://${PUSH_KEY}.push.ft07.com/send`
|
||||
: `https://sctapi.ftqq.com/${PUSH_KEY}.send`,
|
||||
body: `text=${text}&desp=${desp}`,
|
||||
headers: {
|
||||
'Content-Type': 'application/x-www-form-urlencoded',
|
||||
|
||||
Reference in New Issue
Block a user