Skip to content

Commit

Permalink
fix: 更新文档说明;修复 PushPlus 存在错误默认值的问题;修复 企业应用的 id 缺少默认值的问题
Browse files Browse the repository at this point in the history
  • Loading branch information
CaoMeiYouRen committed Nov 19, 2024
1 parent 17e2591 commit 5482fee
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 1 deletion.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,8 @@ npm i push-all-in-one -S

`title``消息标题``desp``消息描述``options` 为该推送方式的`额外推送选项`,具体请参考各个推送渠道的注释。

> 不知道如何设置配置?请前往 [push-all-in-cloud 配置生成器](https://push.cmyr.dev/) 在线生成 `push-all-in-one``push-all-in-cloud` 通用配置。
调用方式举例:

```ts
Expand Down
2 changes: 1 addition & 1 deletion src/push/push-plus.ts
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ export const pushPlusOptionSchema: PushPlusOptionSchema = {
title: '毫秒时间戳',
description: '格式如:1632993318000。服务器时间戳大于此时间戳,则消息不会发送',
required: false,
default: 0,
// default: 0,
},
}

Expand Down
3 changes: 3 additions & 0 deletions src/push/wechat-app.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,18 +34,21 @@ export const wechatAppConfigSchema: WechatAppConfigSchema = {
title: '企业ID',
description: '企业ID,获取方式参考:[术语说明-corpid](https://work.weixin.qq.com/api/doc/90000/90135/91039#14953/corpid)',
required: true,
default: '',
},
WECHAT_APP_SECRET: {
type: 'string',
title: '应用的凭证密钥',
description: '应用的凭证密钥,获取方式参考:[术语说明-secret](https://work.weixin.qq.com/api/doc/90000/90135/91039#14953/secret)',
required: true,
default: '',
},
WECHAT_APP_AGENTID: {
type: 'number',
title: '企业应用的id',
description: '企业应用的id。企业内部开发,可在应用的设置页面查看',
required: true,
default: 0,
},
} as const

Expand Down

0 comments on commit 5482fee

Please sign in to comment.