Skip to content

修复视频号电商部分接口URL路径前缀未同步官方迁移问题#4021

Merged
binarywang merged 2 commits into
developfrom
copilot/fix-url-path-prefixes
May 27, 2026
Merged

修复视频号电商部分接口URL路径前缀未同步官方迁移问题#4021
binarywang merged 2 commits into
developfrom
copilot/fix-url-path-prefixes

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented May 27, 2026

微信官方已将部分视频号电商接口的URL路径前缀从 /channels/ec/ 迁移至 /shop/ec/,但 WxChannelApiUrlConstants.java 中相关常量仍使用旧路径,导致图片上传、资质上传、类目管理和品牌管理等功能调用失败。

变更内容

更新 WxChannelApiUrlConstants.java 中以下 8 个常量的 URL 前缀:

  • Basics 模块

    • IMG_UPLOAD_URL: /channels/ec/basics/img/upload/shop/ec/basics/img/upload
    • UPLOAD_QUALIFICATION_FILE: /channels/ec/basics/qualification/upload/shop/ec/basics/qualification/upload
  • Category 模块

    • LIST_ALL_CATEGORY_URL: /channels/ec/category/all/shop/ec/category/all
    • GET_CATEGORY_DETAIL_URL: /channels/ec/category/detail/shop/ec/category/detail
    • CANCEL_CATEGORY_AUDIT_URL: /channels/ec/category/audit/cancel/shop/ec/category/audit/cancel
  • Brand 模块

    • ALL_BRAND_URL: /channels/ec/brand/all/shop/ec/brand/all
    • ADD_BRAND_URL: /channels/ec/brand/add/shop/ec/brand/add
    • CANCEL_BRAND_AUDIT_URL: /channels/ec/brand/audit/cancel/shop/ec/brand/audit/cancel

其余未在官方文档中明确迁移的 /channels/ec/ 路径保持不变。

Copilot AI changed the title [WIP] Fix URL path prefixes for WxJava constants 修复视频号电商部分接口URL路径前缀未同步官方迁移问题 May 27, 2026
Copilot AI requested a review from binarywang May 27, 2026 12:56
@binarywang binarywang marked this pull request as ready for review May 27, 2026 13:06
Copilot AI review requested due to automatic review settings May 27, 2026 13:06
@chatgpt-codex-connector
Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.
To continue using code reviews, you can upgrade your account or add credits to your account and enable them for code reviews in your settings.

Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

该 PR 修复了视频号电商(Channel 小店)部分接口在微信官方将 URL 路径前缀从 /channels/ec/ 迁移到 /shop/ec/ 后,SDK 仍使用旧路径导致调用失败的问题,属于 weixin-java-channel 模块的接口常量同步更新。

Changes:

  • 将基础模块中的图片上传、资质图片上传接口前缀更新为 /shop/ec/
  • 将类目模块中的类目列表、类目详情、取消提审接口前缀更新为 /shop/ec/
  • 将品牌模块中的品牌库列表、新增品牌、撤回审核接口前缀更新为 /shop/ec/

@binarywang binarywang merged commit 20ce58b into develop May 27, 2026
2 checks passed
@binarywang binarywang deleted the copilot/fix-url-path-prefixes branch May 27, 2026 13:08
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.

[Bug] 部分接口URL路径前缀未同步官方迁移

3 participants