Skip to content

[WIP] Add qrcode jump management methods to WxMpQrcodeService#4040

Draft
Copilot wants to merge 1 commit into
developfrom
copilot/add-qrcode-jump-management-methods
Draft

[WIP] Add qrcode jump management methods to WxMpQrcodeService#4040
Copilot wants to merge 1 commit into
developfrom
copilot/add-qrcode-jump-management-methods

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented May 31, 2026

Thanks for asking me to work on this. I will get started on it and keep this PR's description up to date as I form a plan and make progress.


This section details on the original issue you should resolve

<issue_title>[weixin-java-mp] 服务号二维码跳转管理接口缺失 (qrcodejump get/add/publish/delete)</issue_title>
<issue_description>## 问题描述

模块: weixin-java-mp
问题类型: 缺失方法
严重程度: 🔴 High

服务号提供了二维码跳转规则管理能力(文档:https://developers.weixin.qq.com/doc/subscription/api/qrcode/qrcodejump/),用于控制用户扫码后跳转至小程序的规则,包括:

  • GET cgi-bin/wxopen/qrcodejumpget — 获取已设置的二维码规则
  • POST cgi-bin/wxopen/qrcodejumpadd — 增加或修改二维码规则
  • POST cgi-bin/wxopen/qrcodejumppublish — 发布已设置的二维码规则
  • POST cgi-bin/wxopen/qrcodejumpdelete — 删除已设置的二维码规则

现有 WxMpQrcodeService 中仅包含旧版带参二维码(qrcode/create)和短链(shorten/genshorten/fetch)能力,完全缺少上述4个二维码跳转规则管理接口

影响场景

  • 服务号管理员无法通过SDK管理「扫二维码打开小程序」的跳转规则
  • 开发者只能手动调用HTTP接口绕过SDK
  • 与官方文档能力不对称

建议修复

WxMpQrcodeService 中新增4个方法:

// 获取已设置的二维码规则
WxMpQrCodeJumpResult getQrCodeJump(String accessToken) throws WxErrorException;

// 增加或修改二维码规则
void addQrCodeJump(WxMpQrCodeJumpAddRequest request) throws WxErrorException;

// 发布已设置的二维码规则
void publishQrCodeJump(String accessToken) throws WxErrorException;

// 删除已设置的二维码规则
void deleteQrCodeJump(String accessToken) throws WxErrorException;

环境信息

Comments on the Issue (you are @copilot in this section)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[weixin-java-mp] 服务号二维码跳转管理接口缺失 (qrcodejump get/add/publish/delete)

2 participants