Draft
Conversation
Open
实现以下三个服务卡片消息 API: - 激活与更新服务卡片(setUserNotify) - 更新服务卡片扩展信息(setUserNotifyExt) - 查询服务卡片状态(getUserNotify) Agent-Logs-Url: https://github.com/binarywang/WxJava/sessions/63aeccb8-2684-4ea7-8b6b-9db7d362044a Co-authored-by: binarywang <1343140+binarywang@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Add service card message API for WeChat Mini Programs
feat(miniapp): 新增微信小程序服务卡片消息接口
Apr 7, 2026
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.
微信小程序服务卡片消息(订阅消息2.0)缺少服务端 API 支持。新增
setUserNotify、setUserNotifyExt、getUserNotify三个接口。变更
WxMaApiUrlConstants.Subscribe中新增三个接口地址WxMaServiceNotifyRequest:激活与更新服务卡片(含可选的checkJson微信支付校验字段)WxMaServiceNotifyExtRequest:更新服务卡片扩展信息WxMaGetUserNotifyRequest/WxMaGetUserNotifyResult:查询卡片状态,响应含NotifyInfo(codeState、codeExpireTime等)WxMaSubscribeService新增三个方法,WxMaSubscribeServiceImpl对应实现用法示例
官方文档:setUserNotify | setUserNotifyExt | getUserNotify