问题描述
在 WxChannelApiUrlConstants.java 的 Fund 接口中,以下7个常量的URL路径存在拼接错误,实际请求会返回404。
错误路径:使用了 /channels/ec/shop/funds/ 前缀
正确路径:应使用 /shop/funds/ 前缀
问题代码位置
文件:weixin-java-channel/src/main/java/me/chanjar/weixin/channel/constant/WxChannelApiUrlConstants.java
受影响的常量列表
| 常量名 |
当前错误路径 |
正确路径 |
GET_BANK_BY_NUM_URL |
/channels/ec/shop/funds/getbankbynum |
/shop/funds/getbankbynum |
GET_BANK_LIST_URL |
/channels/ec/shop/funds/getbanklist |
/shop/funds/getbanklist |
GET_CITY_URL |
/channels/ec/shop/funds/getcity |
/shop/funds/getcity |
GET_PROVINCE_URL |
/channels/ec/shop/funds/getprovince |
/shop/funds/getprovince |
GET_SUB_BANK_URL |
/channels/ec/shop/funds/getsubbranch |
/shop/funds/getsubbranch |
GET_QRCODE_URL |
/channels/ec/shop/funds/qrcode/get |
/shop/funds/qrcode/get |
CHECK_QRCODE_URL |
/channels/ec/shop/funds/qrcode/check |
/shop/funds/qrcode/check |
官方文档参考
修复建议
修改 WxChannelApiUrlConstants.Fund 接口中的常量定义,移除多余的 /channels/ec 前缀
影响范围
- 银行信息查询功能
- 省市查询功能
- 支行查询功能
- 资金二维码相关功能
问题描述
在
WxChannelApiUrlConstants.java的Fund接口中,以下7个常量的URL路径存在拼接错误,实际请求会返回404。错误路径:使用了
/channels/ec/shop/funds/前缀正确路径:应使用
/shop/funds/前缀问题代码位置
文件:
weixin-java-channel/src/main/java/me/chanjar/weixin/channel/constant/WxChannelApiUrlConstants.java受影响的常量列表
GET_BANK_BY_NUM_URL/channels/ec/shop/funds/getbankbynum/shop/funds/getbankbynumGET_BANK_LIST_URL/channels/ec/shop/funds/getbanklist/shop/funds/getbanklistGET_CITY_URL/channels/ec/shop/funds/getcity/shop/funds/getcityGET_PROVINCE_URL/channels/ec/shop/funds/getprovince/shop/funds/getprovinceGET_SUB_BANK_URL/channels/ec/shop/funds/getsubbranch/shop/funds/getsubbranchGET_QRCODE_URL/channels/ec/shop/funds/qrcode/get/shop/funds/qrcode/getCHECK_QRCODE_URL/channels/ec/shop/funds/qrcode/check/shop/funds/qrcode/check官方文档参考
修复建议
修改
WxChannelApiUrlConstants.Fund接口中的常量定义,移除多余的/channels/ec前缀影响范围