Title: [Feature] 新增赠品和买赠活动模块支持 · Issue #3986 · binarywang/WxJava · GitHub
Open Graph Title: [Feature] 新增赠品和买赠活动模块支持 · Issue #3986 · binarywang/WxJava
X Title: [Feature] 新增赠品和买赠活动模块支持 · Issue #3986 · binarywang/WxJava
Description: 功能描述 赠品和买赠活动是电商常用营销功能,目前WxJava完全未实现该模块。 官方文档 赠品:https://developers.weixin.qq.com/doc/channels/API/channels-shop-product/gift/ 买赠活动:https://developers.weixin.qq.com/doc/channels/API/channels-shop-product/giftactivity/ 需要实现的接口列表(9个) 赠品管理(6...
Open Graph Description: 功能描述 赠品和买赠活动是电商常用营销功能,目前WxJava完全未实现该模块。 官方文档 赠品:https://developers.weixin.qq.com/doc/channels/API/channels-shop-product/gift/ 买赠活动:https://developers.weixin.qq.com/doc/channels/API/channels-shop-pr...
X Description: 功能描述 赠品和买赠活动是电商常用营销功能,目前WxJava完全未实现该模块。 官方文档 赠品:https://developers.weixin.qq.com/doc/channels/API/channels-shop-product/gift/ 买赠活动:https://developers.weixin.qq.com/doc/channels/API/channels-shop-pr...
Opengraph URL: https://github.com/binarywang/WxJava/issues/3986
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"[Feature] 新增赠品和买赠活动模块支持","articleBody":"## 功能描述\n赠品和买赠活动是电商常用营销功能,目前WxJava完全未实现该模块。\n\n## 官方文档\n- 赠品:https://developers.weixin.qq.com/doc/channels/API/channels-shop-product/gift/\n- 买赠活动:https://developers.weixin.qq.com/doc/channels/API/channels-shop-product/giftactivity/\n\n## 需要实现的接口列表(9个)\n\n### 赠品管理(6个)\n| 接口名称 | 请求路径 |\n|----------|----------|\n| 添加非卖商品 | `/channels/ec/product/gift/add` |\n| 更新非卖商品 | `/channels/ec/product/gift/update` |\n| 在售商品转赠品 | `/channels/ec/product/gift/onsale/set` |\n| 获取赠品 | `/channels/ec/product/gift/get` |\n| 获取赠品列表 | `/channels/ec/product/gift/list/get` |\n| 更新赠品库存 | `/channels/ec/product/gift/stock/update` |\n\n### 买赠活动(3个)\n| 接口名称 | 请求路径 |\n|----------|----------|\n| 创建赠品活动 | `/channels/ec/product/activity/add` |\n| 删除赠品活动 | `/channels/ec/product/activity/del` |\n| 停止赠品活动 | `/channels/ec/product/activity/stop` |\n\n## 实现要点\n建议在 `WxChannelProductService` 中新增以下方法:\n\n```java\n// 赠品管理\nString addGiftProduct(GiftProductInfo info) throws WxErrorException;\nvoid updateGiftProduct(GiftProductInfo info) throws WxErrorException;\nvoid setProductAsGift(String productId) throws WxErrorException;\nGiftProductInfo getGiftProduct(String productId) throws WxErrorException;\nGiftProductListResponse listGiftProduct(GiftProductListParam param) throws WxErrorException;\nvoid updateGiftStock(String productId, String skuId, Integer stock) throws WxErrorException;\n\n// 买赠活动\nString addGiftActivity(GiftActivityInfo info) throws WxErrorException;\nvoid deleteGiftActivity(String activityId) throws WxErrorException;\nvoid stopGiftActivity(String activityId) throws WxErrorException;\n```\n","author":{"url":"https://github.com/binarywang","@type":"Person","name":"binarywang"},"datePublished":"2026-05-09T08:07:12.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/3986/WxJava/issues/3986"}
| 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:65dc668e-0b76-e999-02a2-eb727b458c67 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | E042:1250B6:4CB40D:66FDC5:6A580233 |
| html-safe-nonce | a5e41d0c76b8b3611e424c18d5f52b96254bb629daff29c1c98dc5425fc7d18f |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFMDQyOjEyNTBCNjo0Q0I0MEQ6NjZGREM1OjZBNTgwMjMzIiwidmlzaXRvcl9pZCI6Ijg0MTc0NDA5NzE5NDA2OTI1MzIiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | d035185c759eff1f3e92a7fd556b8332377869584f3cf7b16b193f3815893f88 |
| hovercard-subject-tag | issue:4411804883 |
| 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/3986/issue_layout |
| twitter:image | https://opengraph.githubassets.com/657242889938d1dcb7fcab031ece3a0f9315286771bfcf3b58157920f23a9ffb/binarywang/WxJava/issues/3986 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/657242889938d1dcb7fcab031ece3a0f9315286771bfcf3b58157920f23a9ffb/binarywang/WxJava/issues/3986 |
| og:image:alt | 功能描述 赠品和买赠活动是电商常用营销功能,目前WxJava完全未实现该模块。 官方文档 赠品:https://developers.weixin.qq.com/doc/channels/API/channels-shop-product/gift/ 买赠活动:https://developers.weixin.qq.com/doc/channels/API/channels-shop-pr... |
| 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 | 3fb1f684e7a833eb1b2d01d39875a2b52cb4fe9b |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width