feat: 新增 WPUSH 通知渠道 - #206
Open
anhao wants to merge 1 commit into
Open
Conversation
镜像 PushPlus 适配器新增 wpush 渠道:POST https://api.wpush.cn/api/v1/send, 仅当响应 JSON code===0 视为成功;支持可选 channel / topic_code;API Key 脱敏不落日志。 接入 dispatch 注册表、配置页、测试发送与单元测试。
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
概述
新增 WPUSH 通知渠道,镜像现有 PushPlus 适配器模式接入调度器与配置页。
改动
src/services/notify/wpush.js:POST https://api.wpush.cn/api/v1/send,仅当响应 JSONcode === 0视为成功dispatch.js的ALL_CHANNELS注册wpushWPUSH_APIKEY(敏感字段脱敏)、可选WPUSH_CHANNEL/WPUSH_TOPIC_CODE/api/test-notification支持type=wpush使用
系统配置 → 勾选 WPUSH → 填写 API Key → 可选渠道 / Topic 编码 → 点「测试 WPUSH 通知」。
验证