苹果支付验证
请求URL:
/purchaseApple
请求方式:
- POST
参数:
| 参数名 | 必选 | 类型 | 说明 |
|---|---|---|---|
| receiptData | 是 | string | 支付凭证 |
返回示例
{
"code": 200,
"msg": "SUCCESS",
"data": null
}
返回参数说明
| 参数名 | 类型 | 说明 |
|---|---|---|
| code | int | 状态码 |
| msg | string | 提示信息 |
| data | string | 数据 |
备注 验证成功后用户的账户余额将增加相应的金币数(socket将会推送账户金额变动通知)
{
"type": 8,
"msg": "The recharge was successful and the balance of gold coins increased by xxx",
"data": {
"count": xxx , // 变动数量
"balance": xxx // 当前余额
}
}