docs(channels): 修正 6 处指向已不存在 design/08 节号的注释(只改注释)
This commit is contained in:
1 parent
91a3209c9b
commit
e792baa316
5 files changed
+12
-10
No files matched your search
@@ -31,7 +31,7 @@ type sendResult struct {
|
||||
|
||||
// SendMessage 向渠道投递一条回复。每条消息都发给从该消息(或 resp.ReplyTo)
|
||||
// 解析出的对端,并使用该对端已存的 context_token,以便平台把回复关联到正确的
|
||||
// 会话(design/08 §8)。
|
||||
// 会话(见 design/08 §4 的 weixin-ilink 条目:`context_token`)。
|
||||
func (a *Adapter) SendMessage(ctx context.Context, resp adapter.UnifiedResponse) error {
|
||||
if err := a.sendGuard(); err != nil {
|
||||
return err
|
||||
@@ -49,9 +49,9 @@ func (a *Adapter) SendMessage(ctx context.Context, resp adapter.UnifiedResponse)
|
||||
}
|
||||
|
||||
// SendProactive 推送一条并非由近期入站消息触发的消息。微信 iLink 只允许在用户
|
||||
// 最后一条消息之后的 24 小时窗口内这么做(design/08 §3-4):用户沉默更久、或从未
|
||||
// 发过消息时,推送以 ErrProactiveWindow 被拒,而 Capabilities.Proactive 仅为 true,
|
||||
// 好让调用方知道该能力存在。
|
||||
// 最后一条消息之后的 24 小时窗口内这么做(见 design/08 §3 的主动推送表与 §4 的
|
||||
// weixin-ilink 条目):用户沉默更久、或从未发过消息时,推送以 ErrProactiveWindow
|
||||
// 被拒,而 Capabilities.Proactive 仅为 true,好让调用方知道该能力存在。
|
||||
func (a *Adapter) SendProactive(ctx context.Context, msg adapter.UnifiedMessage) error {
|
||||
if err := a.sendGuard(); err != nil {
|
||||
return err
|
||||
|
||||
Reference in new issue
Block a user