提交 ed349ffd 作者: 李泽奇

支付结果增加回调

上级 3d8028d8
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
# 游戏 SDK 对接文档-v1.3.4 # 游戏 SDK 对接文档-v1.3.4
...@@ -878,6 +878,7 @@ zwsdk.createOrder(config:Object) ...@@ -878,6 +878,7 @@ zwsdk.createOrder(config:Object)
> | loadingParams | false | Object | - | showLoading 为 true 时生效。与[抖音小游戏 showLoading](https://developer.open-douyin.com/docs/resource/zh-CN/mini-game/develop/api/interface/interaction/tt-show-loading) 参数一致 | > | loadingParams | false | Object | - | showLoading 为 true 时生效。与[抖音小游戏 showLoading](https://developer.open-douyin.com/docs/resource/zh-CN/mini-game/develop/api/interface/interaction/tt-show-loading) 参数一致 |
> | showToast | false | Boolean | false | 异步请求失败,是否显示抖音小游戏消息提示框 <br>异步请求成功,若要显示消息提示,需主动调用抖音小游戏消息提示框框 | > | showToast | false | Boolean | false | 异步请求失败,是否显示抖音小游戏消息提示框 <br>异步请求成功,若要显示消息提示,需主动调用抖音小游戏消息提示框框 |
> | toastParams | false | Object | - | showLoading 为 true 时生效。与[抖音小游戏 showToast](https://developer.open-douyin.com/docs/resource/zh-CN/mini-game/develop/api/interface/interaction/tt-show-toast) 参数一致 | > | toastParams | false | Object | - | showLoading 为 true 时生效。与[抖音小游戏 showToast](https://developer.open-douyin.com/docs/resource/zh-CN/mini-game/develop/api/interface/interaction/tt-show-toast) 参数一致 |
> | payReponse | false | Function | - | 支付结果回调函数,若拉起支付成功返回{ msg: 'success' },若拉起支付失败返回{ msg: 'error' } |
##### 返回参数 ##### 返回参数
...@@ -913,6 +914,9 @@ zwsdk ...@@ -913,6 +914,9 @@ zwsdk
role_name: '', role_name: '',
role_level: '0', role_level: '0',
role_vip: '0' role_vip: '0'
},
payReponse: (res) => {
console.log('payReponse:', res.msg === 'success' ? '拉起支付成功' : '拉起支付失败' )
} }
}) })
.then((res) => { .then((res) => {
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论