hpp2019
hpp2019
  • 发布:2022-12-22 10:12
  • 更新:2022-12-22 10:12
  • 阅读:265

uni.requestPayment api,微信小程序下complete不能在安卓下回调成功

分类:uni-app

产品分类: uniapp/小程序/微信

PC开发环境操作系统: Windows

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

第三方开发者工具版本号: 1.06

基础库版本号: 8.0.24

项目创建方式: CLI

CLI版本号: 2

示例代码:

success: (e) => {
console.log('success:' + JSON.stringify(e));
uni.showToast({
//提示
icon: 'none',
title: '支付成功',
});
this.dataList = [];
this.query.pageNum = 1;
this.getDataList();
},
fail: function (err) {
console.log('fail:' + JSON.stringify(err));
this.dataList = [];
this.query.pageNum = 1;
this.getDataList();
// uni.showToast({//提示
// icon:"none",
// title:'支付发生错误'
// })
},
complete: (e) => {
// this.dataList = [];
// this.query.pageNum = 1;
// this.getDataList();
},

操作步骤:

调用支付接口,在安卓手机下即可再现

预期结果:

complete能在安卓下回调成功

实际结果:

complete能在安卓下未能回调成功

bug描述:

在微信小程序中,使用uni.requestPayment api,安卓手机中complete钩子并没有成功回调,在微信开发着工具和ios下,都可以回调成功!

2022-12-22 10:12 负责人:无 分享
已邀请:

该问题目前已经被锁定, 无法添加新回复

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

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

## 大标题 
### 小标题

斜体 / 粗体 :

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

代码片段 :

``` 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

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

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