Skip to content

Commit

Permalink
Merge pull request #339 from ifanrx/subscribe-message-rate-limit
Browse files Browse the repository at this point in the history
添加微信订阅限流控制描述
  • Loading branch information
jiajun-ifanr authored Jun 12, 2023
2 parents 00f4f19 + c6106e8 commit 45c0dc1
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions cloud-function/node-sdk/frag/_subscribe-message.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,9 @@ data 是 Object 类型,它包括以下几个属性
| page           | String | 否  | 点击模板卡片后的跳转页面,仅限本小程序内的页面。支持带参数。该字段不填则模板无跳转。|
| can_send_subscription_message | Boolean || 是否过滤无效用户 |
| miniprogram_state | String || 跳转小程序类型:developer 为开发版;trial 为体验版;formal 为正式版;默认为正式版 |
| subscription_message_rate_limit | Object || 订阅消息限流控制,参数详见下方 RateLimit 类型说明 |
| template_message_rate_limit | Object || 模版消息限流控制,参数详见下方 RateLimit 类型说明 |

{% else %}
| 参数 | 类型 | 必填 | 说明 |
| :-------------- | :----- | :--- | :-- |
Expand Down Expand Up @@ -80,6 +83,10 @@ let data = {
number01: {
value: "50.5",
}
},
subscription_message_rate_limit: {
"interval": 10, // 间隔秒数
"limit": 1000 // 每批数量
}
}

Expand Down

0 comments on commit 45c0dc1

Please sign in to comment.