Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
CaoMeiYouRen committed Mar 9, 2021
1 parent e3e2e76 commit e046788
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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('你好', '你好,我很可爱')
Expand Down
10 changes: 5 additions & 5 deletions src/push/push-plus.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
*/
Expand All @@ -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
Expand All @@ -48,7 +48,7 @@ export class PushPlus implements Send {
send(title: string, content?: string, template: TemplateType = 'html'): Promise<AxiosResponse<any>> {
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',
Expand Down

0 comments on commit e046788

Please sign in to comment.