韩飘飘
韩飘飘
  • 发布:2022-12-22 10:12
  • 更新:2022-12-22 10:12
  • 阅读:138

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 负责人:无 分享
已邀请:

要回复问题请先登录注册