Conversation
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.
新增功能
1. 新增 WxPusher 转发通道(TYPE_WXPUSHER = 16)
基于 WxPusher 官方 API 实现,按配置自动切换两种推送模式:
POST /api/send/message):appToken + UIDs/主题IDs,支持多 UID、多主题群发,contentType支持 1-文本 / 2-Markdown / 3-HTMLPOST /api/send/message/simple-push):仅需 SPT,适合单设备快速接入配置项:appToken、UIDs(逗号分隔)、topicIds(逗号分隔)、SPT、contentType、摘要模板(summary)、正则替换内容。完整接入设置页、通道列表、图标、日志展示、多语言(简中/繁中/英语)。
2. Webhook / WxPusher 通道级正则提取
在通道设置中直接配置「正则替换」(格式
正则===替换结果,每行一条),无需创建转发规则即可在通道内提取验证码等内容:解决的实际痛点:转发规则需要逐个号码/关键词配置,而验证码提取逻辑往往对所有短信通用,通道级配置一次即可全局生效。
3. 修复 Webhook GET 请求 URL 拼接错误
原 GET + 非自定义参数分支中,
from参数被误拼接到setting.webServer(而非实际请求的requestUrl)导致参数丢失;且content固定用&拼接,当 URL 不含?时产生非法 URL。现统一为:requestUrl已含?则用&追加,否则先补?。说明
文件变更
新增:WxpusherSetting / WxpusherUtils / WxpusherFragment / WxpusherResult / icon_wxpusher / fragment_senders_wxpusher
修改:
applyRegexReplace()供通道调用