Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

添加小游戏道具直购(present_goods)API支持#3811

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Draft
Copilot wants to merge3 commits intodevelop
base:develop
Choose a base branch
Loading
fromcopilot/add-direct-purchase-support

Conversation

Copy link
Contributor

CopilotAI commentedDec 19, 2025
edited
Loading

用户反馈无法找到小游戏道具直购功能支持。根据微信官方文档,添加present_goods API 实现。

新增内容

  • API 接口WxMaXPayService.presentGoods()
  • 请求 BeanWxMaXPayPresentGoodsRequest - 包含 openid、env、order_id、device_type、goods_id、goods_number
  • 响应 BeanWxMaXPayPresentGoodsResponse - 返回 order_id
  • URL 常量WxMaApiUrlConstants.XPay.PRESENT_GOODS_URL

使用示例

WxMaXPayPresentGoodsRequestrequest =WxMaXPayPresentGoodsRequest.builder()    .openid("oUpF8uMuAJO_M2pxb1Q9zNjWeS6o")    .env(0)    .orderId("ORDER_20231219001")    .deviceType(0)    .goodsId("ITEM_001")    .goodsNumber(1)    .build();WxMaXPayPresentGoodsResponseresponse =wxMaService.getXPayService()    .presentGoods(request,sigParams);

实现模式与现有虚拟支付 API(如presentCurrency)保持一致。

Original prompt

This section details on the original issue you should resolve

<issue_title>请问小游戏的道具直购有支持吗?我没找到</issue_title>
<issue_description>这是道具直购的文档:
https://developers.weixin.qq.com/minigame/dev/guide/open-ability/virtual-payment/goods.html</issue_description>

Comments on the Issue (you are@copilot in this section)

Custom agent used: 全部用中文
需要用中文,包括PR标题和分析总结过程


💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn moreCopilot coding agent tips in the docs.

CopilotAIand others added2 commitsDecember 19, 2025 17:24
Co-authored-by: binarywang <1343140+binarywang@users.noreply.github.com>
Co-authored-by: binarywang <1343140+binarywang@users.noreply.github.com>
CopilotAI changed the title[WIP] Add support for direct purchase of game props添加小游戏道具直购(present_goods)API支持Dec 19, 2025
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@binarywangbinarywangAwaiting requested review from binarywang

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

请问小游戏的道具直购有支持吗?我没找到

2 participants

@binarywang

[8]ページ先頭

©2009-2025 Movatter.jp