Title: [weixin-java-channel] WxChannelProductService 缺失赠品/买赠活动/限时抢购/库存等完整子API(共28个端点) · Issue #4002 · binarywang/WxJava · GitHub
Open Graph Title: [weixin-java-channel] WxChannelProductService 缺失赠品/买赠活动/限时抢购/库存等完整子API(共28个端点) · Issue #4002 · binarywang/WxJava
X Title: [weixin-java-channel] WxChannelProductService 缺失赠品/买赠活动/限时抢购/库存等完整子API(共28个端点) · Issue #4002 · binarywang/WxJava
Description: 问题描述 WxChannelProductService(视频号小店商品服务)缺少多个官方文档中已有的完整 API 子模块,涉及 28 个端点。 1. 赠品管理(Gift)- 7个端点全缺 官方文档:https://developers.weixin.qq.com/doc/store/shop/API/channels-shop-product/gift/api_addgiftproduct.html 方法 端点 addGiftProduct(添加非卖商品) /chan...
Open Graph Description: 问题描述 WxChannelProductService(视频号小店商品服务)缺少多个官方文档中已有的完整 API 子模块,涉及 28 个端点。 1. 赠品管理(Gift)- 7个端点全缺 官方文档:https://developers.weixin.qq.com/doc/store/shop/API/channels-shop-product/gift/api_addgiftproduct...
X Description: 问题描述 WxChannelProductService(视频号小店商品服务)缺少多个官方文档中已有的完整 API 子模块,涉及 28 个端点。 1. 赠品管理(Gift)- 7个端点全缺 官方文档:https://developers.weixin.qq.com/doc/store/shop/API/channels-shop-product/gift/api_addgiftproduct...
Opengraph URL: https://github.com/binarywang/WxJava/issues/4002
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"[weixin-java-channel] WxChannelProductService 缺失赠品/买赠活动/限时抢购/库存等完整子API(共28个端点)","articleBody":"## 问题描述\n\n**WxChannelProductService**(视频号小店商品服务)缺少多个官方文档中已有的完整 API 子模块,涉及 28 个端点。\n\n### 1. 赠品管理(Gift)- 7个端点全缺\n\n官方文档:https://developers.weixin.qq.com/doc/store/shop/API/channels-shop-product/gift/api_addgiftproduct.html\n\n| 方法 | 端点 |\n|------|------|\n| addGiftProduct(添加非卖商品) | /channels/ec/product/gift/add |\n| updateGiftProduct(更新非卖商品) | /channels/ec/product/gift/update |\n| setProductAsGift(在售商品转赠品) | /channels/ec/product/gift/onsale/set |\n| getGiftProduct(获取赠品) | /channels/ec/product/gift/get |\n| listGiftProduct(获取赠品列表) | /channels/ec/product/gift/list/get |\n| updateGiftStock(更新赠品库存) | /channels/ec/product/gift/stock/update |\n\n### 2. 买赠活动(GiftActivity)- 3个端点全缺\n\n| 方法 | 端点 |\n|------|------|\n| addGiftActivity(创建赠品活动) | /channels/ec/product/activity/add |\n| deleteGiftActivity(删除赠品活动) | /channels/ec/product/activity/del |\n| stopGiftActivity(停止赠品活动) | /channels/ec/product/activity/stop |\n\n### 3. 限时抢购(LimitedDiscountTask)- 5个端点全缺\n\n| 方法 | 端点 |\n|------|------|\n| addLimitedDiscountTask(添加限时抢购任务) | /channels/ec/product/limiteddiscounttask/add |\n| updateLimitedDiscountTask(更新限时抢购任务) | /channels/ec/product/limiteddiscounttask/update |\n| deleteLimitedDiscountTask(删除限时抢购任务) | /channels/ec/product/limiteddiscounttask/delete |\n| stopLimitedDiscountTask(停止限时抢购任务) | /channels/ec/product/limiteddiscounttask/stop |\n| listLimitedDiscountTask(获取限时抢购任务列表) | /channels/ec/product/limiteddiscounttask/list/get |\n\n**注意**:SDK 中已有 `addLimitTask`、`listLimitTask`、`stopLimitTask`、`deleteLimitTask` 方法,但缺少完整的 update 接口,且命名不一致(`LimitTask` vs `LimitedDiscountTask` 语义不完全对应)。\n\n### 4. 库存管理(Stock)- 4个端点全缺\n\n| 方法 | 端点 |\n|------|------|\n| getStock(获取库存) | /channels/ec/product/stock/get |\n| getStockBatch(批量获取库存) | /channels/ec/product/stock/batchget |\n| getStockFlow(获取库存流水) | /channels/ec/product/stock/getflow |\n| updateStockFast(快速更新库存) | /channels/ec/product/stock/update |\n\n### 5. 其他缺失(9个)\n\n| 方法 | 端点 | 说明 |\n|------|------|------|\n| categoryPreCheck | /channels/ec/product/categoryprecheck | 发品前校验 |\n| getProductAuditStrategy | /channels/ec/product/auditstrategy/get | 获取商品上架策略 |\n| setProductAuditStrategy | /channels/ec/product/auditstrategy/set | 设置商品上架策略 |\n| getProductAuditQuota | /channels/ec/product/getauditquota | 获取商品提审限额 |\n| getProductBrandRecommend | /channels/ec/product/productbrandrecommend | 商品品牌推荐 |\n| externalProductMapping | /channels/ec/product/externalproductmapping | 站内外属性映射 |\n| externalProductMappingNew | /channels/ec/product/externalproductmappingnew | 站内外属性映射v2 |\n| beginTimingSale | /channels/ec/product/begintimingsale | 商品立即开售 |\n| cancelTimingSale | /channels/ec/product/canceltimingsale | 取消商品开售 |\n\n---\n\n## SDK 文件路径\n\n- Service接口:`weixin-java-channel/src/main/java/me/chanjar/weixin/channel/api/WxChannelProductService.java`\n- ServiceImpl:`weixin-java-channel/src/main/java/me/chanjar/weixin/channel/api/impl/WxChannelProductServiceImpl.java`\n- 常量类:`weixin-java-channel/src/main/java/me/chanjar/weixin/channel/constant/WxChannelApiUrlConstants.java`(Spu内部接口)\n\n## 建议\n\n1. 新增 `WxChannelGiftService` 处理赠品和买赠活动完整功能\n2. 新增 `WxChannelLimitedDiscountService` 或扩展现有 WxChannelProductService\n3. 新增 `WxChannelProductStockService` 处理库存相关接口\n4. 补充商品辅助接口(发品前校验、上架策略、属性映射等)","author":{"url":"https://github.com/binarywang","@type":"Person","name":"binarywang"},"datePublished":"2026-05-14T14:03:06.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/4002/WxJava/issues/4002"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:2b1a9b0c-c58d-401e-ccf0-b65299359fb5 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | A2E4:1423B7:C1E59F:108DFB4:6A57E72D |
| html-safe-nonce | 721ebcde743a05cd0c3e4a8ce52a453fd8b94daecb23a8344fd4bf685149d0ad |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBMkU0OjE0MjNCNzpDMUU1OUY6MTA4REZCNDo2QTU3RTcyRCIsInZpc2l0b3JfaWQiOiIyMjQ5NTczMjI3MTEzNzM1OTgxIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 982ba1c800faa841ceadd8a6888fcdcc5bde32b6fcf6501804b1f53ba2e617d8 |
| hovercard-subject-tag | issue:4446534879 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/binarywang/WxJava/4002/issue_layout |
| twitter:image | https://opengraph.githubassets.com/47133283905f46b54501a47327eccbf5e519e904e85b8f9e955725c3230acf8e/binarywang/WxJava/issues/4002 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/47133283905f46b54501a47327eccbf5e519e904e85b8f9e955725c3230acf8e/binarywang/WxJava/issues/4002 |
| og:image:alt | 问题描述 WxChannelProductService(视频号小店商品服务)缺少多个官方文档中已有的完整 API 子模块,涉及 28 个端点。 1. 赠品管理(Gift)- 7个端点全缺 官方文档:https://developers.weixin.qq.com/doc/store/shop/API/channels-shop-product/gift/api_addgiftproduct... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | binarywang |
| hostname | github.com |
| expected-hostname | github.com |
| None | 49c8c15fabcbf356d607a90ca115c13b273e42ff8b74155de050fd229a9b0121 |
| turbo-cache-control | no-preview |
| go-import | github.com/binarywang/WxJava git https://github.com/binarywang/WxJava.git |
| octolytics-dimension-user_id | 1343140 |
| octolytics-dimension-user_login | binarywang |
| octolytics-dimension-repository_id | 49122742 |
| octolytics-dimension-repository_nwo | binarywang/WxJava |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 49122742 |
| octolytics-dimension-repository_network_root_nwo | binarywang/WxJava |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 72a32c9d47294b6b7eb7f0250253277920c7a987 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width