修复视频号电商部分接口URL路径前缀未同步官方迁移问题#4021
Merged
Merged
Conversation
Copilot
AI
changed the title
[WIP] Fix URL path prefixes for WxJava constants
修复视频号电商部分接口URL路径前缀未同步官方迁移问题
May 27, 2026
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
There was a problem hiding this comment.
Pull request overview
该 PR 修复了视频号电商(Channel 小店)部分接口在微信官方将 URL 路径前缀从 /channels/ec/ 迁移到 /shop/ec/ 后,SDK 仍使用旧路径导致调用失败的问题,属于 weixin-java-channel 模块的接口常量同步更新。
Changes:
- 将基础模块中的图片上传、资质图片上传接口前缀更新为
/shop/ec/ - 将类目模块中的类目列表、类目详情、取消提审接口前缀更新为
/shop/ec/ - 将品牌模块中的品牌库列表、新增品牌、撤回审核接口前缀更新为
/shop/ec/
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.
微信官方已将部分视频号电商接口的URL路径前缀从
/channels/ec/迁移至/shop/ec/,但WxChannelApiUrlConstants.java中相关常量仍使用旧路径,导致图片上传、资质上传、类目管理和品牌管理等功能调用失败。变更内容
更新
WxChannelApiUrlConstants.java中以下 8 个常量的 URL 前缀:Basics 模块
IMG_UPLOAD_URL:/channels/ec/basics/img/upload→/shop/ec/basics/img/uploadUPLOAD_QUALIFICATION_FILE:/channels/ec/basics/qualification/upload→/shop/ec/basics/qualification/uploadCategory 模块
LIST_ALL_CATEGORY_URL:/channels/ec/category/all→/shop/ec/category/allGET_CATEGORY_DETAIL_URL:/channels/ec/category/detail→/shop/ec/category/detailCANCEL_CATEGORY_AUDIT_URL:/channels/ec/category/audit/cancel→/shop/ec/category/audit/cancelBrand 模块
ALL_BRAND_URL:/channels/ec/brand/all→/shop/ec/brand/allADD_BRAND_URL:/channels/ec/brand/add→/shop/ec/brand/addCANCEL_BRAND_AUDIT_URL:/channels/ec/brand/audit/cancel→/shop/ec/brand/audit/cancel其余未在官方文档中明确迁移的
/channels/ec/路径保持不变。