From e046788f2fd36592867e956fc7e2da29b350bc7b Mon Sep 17 00:00:00 2001 From: CaoMeiYouRen <996881204@qq.com> Date: Tue, 9 Mar 2021 19:55:44 +0800 Subject: [PATCH] =?UTF-8?q?fix(push-plus):=20=E4=BF=AE=E6=94=B9=20http://p?= =?UTF-8?q?ushplus.hxtrip.com=20->=20https://www.pushplus.plus?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 原因 https://mp.weixin.qq.com/s/XbWih4Mv5ggBPGg0-QBJJw --- README.md | 2 +- src/push/push-plus.ts | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index f40cab0..d075c8c 100644 --- a/README.md +++ b/README.md @@ -59,7 +59,7 @@ const wechatApp = new WechatApp({ }) wechatApp.send('你好,我很可爱') -// pushplus 推送,官方文档:http://pushplus.hxtrip.com/doc/ +// pushplus 推送,官方文档:https://www.pushplus.plus/doc/ const PUSH_PLUS_TOKEN = 'xxxxxxxxxxxxxxxxxxxxx' const pushplus = new PushPlus(PUSH_PLUS_TOKEN) pushplus.send('你好', '你好,我很可爱') diff --git a/src/push/push-plus.ts b/src/push/push-plus.ts index 0ba6b17..edde719 100644 --- a/src/push/push-plus.ts +++ b/src/push/push-plus.ts @@ -5,9 +5,9 @@ import { Send } from '../interfaces/send' const Debugger = debug('push:push-plus') -export type TemplateType = 'html' | 'json' | 'cloudMonitor' +export type TemplateType = 'html' | 'json' | 'cloudMonitor' | 'jenkins' | 'route' /** - * pushplus 推送加开放平台,仅支持一对一推送。官方文档:http://pushplus.hxtrip.com/doc/ + * pushplus 推送加开放平台,仅支持一对一推送。官方文档:https://www.pushplus.plus/doc/ * * @author CaoMeiYouRen * @date 2021-03-03 @@ -17,7 +17,7 @@ export type TemplateType = 'html' | 'json' | 'cloudMonitor' export class PushPlus implements Send { /** - * 请前往 http://pushplus.hxtrip.com/message 领取 + * 请前往 https://www.pushplus.plus/message 领取 * * @private */ @@ -26,7 +26,7 @@ export class PushPlus implements Send { * * @author CaoMeiYouRen * @date 2021-03-03 - * @param PUSH_PLUS_TOKEN 请前往 http://pushplus.hxtrip.com/message 领取 + * @param PUSH_PLUS_TOKEN 请前往 https://www.pushplus.plus/message 领取 */ constructor(PUSH_PLUS_TOKEN: string) { this.PUSH_PLUS_TOKEN = PUSH_PLUS_TOKEN @@ -48,7 +48,7 @@ export class PushPlus implements Send { send(title: string, content?: string, template: TemplateType = 'html'): Promise> { Debugger('title: "%s", content: "%s", template: "%s"', title, content, template) return ajax({ - url: 'http://pushplus.hxtrip.com/send', + url: 'http://www.pushplus.plus/send', method: 'POST', headers: { 'Content-Type': 'application/json',