助赢
助赢
  • 发布:2024-01-30 14:04
  • 更新:2024-01-30 14:04
  • 阅读:310

【报Bug】iOS 12 - 13 内购有问题

分类:uni-app

产品分类: uniapp/App

PC开发环境操作系统: Windows

PC开发环境操作系统版本号: macOS 12.6.3

HBuilderX类型: 正式

HBuilderX版本号: 3.99

手机系统: iOS

手机系统版本号: iOS 12.1

手机厂商: 苹果

手机机型: iphone8

页面类型: vue

vue版本: vue3

打包方式: 云端

项目创建方式: HBuilderX

示例代码:

uni.requestPayment({
provider: 'appleiap',
orderInfo: {
quantity: 1,
manualFinishTransaction: true,
...orderInfo
},
success: res => {
resolve(res)
},
fail: err => {
//console.log('requestPayment-err: ', err)
reject(err)
}
})

操作步骤:

iOS 12 - 13 第一次调内购时,就会返回 requestPayment:fail Payment_appleiap:Error Domain=SKErrorDomain Code=2 \"无法连接iTunes Store\" UserInfo={NSLocalizedDescription=无法连接iTunes Store},https://ask.dcloud.net.cn/article/282 但是过会还是会弹出 内购的弹窗

预期结果:

iOS 12 - 13 调内购 如果返回错误,那就不要再弹出 购买的窗口了

实际结果:

iOS 12 - 13 调内购 返回错误,还是会弹出 购买的窗口了

bug描述:

第一次调内购时,就会返回 requestPayment:fail Payment_appleiap:Error Domain=SKErrorDomain Code=2 \"无法连接iTunes Store\" UserInfo={NSLocalizedDescription=无法连接iTunes Store},https://ask.dcloud.net.cn/article/282 但是过会还是会弹出 内购的弹窗

2024-01-30 14:04 负责人:无 分享
已邀请:

要回复问题请先登录注册

  • 标题 / 粗斜体
  • 代码片段
  • 超链接 / 图片 / 视频
  • 列表 / 引用

文章内容较多时,可以用标题分段 :

## 大标题 
### 小标题

斜体 / 粗体 :

**粗体** 
*斜体*
***粗斜体***

代码片段 :

``` javascript
代码片段
```

超链接 :

[链接文字](链接地址) 例: [百度](http://www.baidu.com)

图片 :

![图片说明](图片地址) 例: ![百度logo](http://www.baidu.com/img/bdlogo.gif)

视频 :

!![视频说明](视频地址) 例: !![优酷视频](http://youku.com)

有序列表 :

1. 123
2. 123
3. 123

无序列表 :

- 123
- 123
- 123

引用 : ( 双回车后结束引用 )

> 引用内容
引用内容
引用内容