Skip to content

[Bug] Category模块类目权限列表接口URL三段式重复 #3980

@binarywang

Description

@binarywang

问题描述

Category.LIST_RELATION_CATEGORY_URL 常量的URL路径存在严重的拼接错误,路径中出现了 /channels/ec/shop/ec/ 三段式重复。

问题代码位置

文件:weixin-java-channel/src/main/java/me/chanjar/weixin/channel/constant/WxChannelApiUrlConstants.java

问题详情

常量名 当前错误路径 正确路径
LIST_RELATION_CATEGORY_URL /channels/ec/shop/ec/category/get_category_relation_list /shop/ec/category/get_category_relation_list

官方文档参考

修复建议

// 修复前
String LIST_RELATION_CATEGORY_URL = \"https://api.weixin.qq.com/channels/ec/shop/ec/category/get_category_relation_list\";

// 修复后
String LIST_RELATION_CATEGORY_URL = \"https://api.weixin.qq.com/shop/ec/category/get_category_relation_list\";

影响范围

  • WxChannelCategoryService.listRelationCategory() 方法调用时会返回404错误

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions