uni-requestMerchantTransfer在苹果手机有一些确认收款报错,我的源代码如下:
try {
// 调用微信原生API(会唤起全屏确认)
let mchId = import.meta.env.SHOPRO_mchId;
let appId = import.meta.env.SHOPRO_AppId; //App-
//#ifdef MP-WEIXIN
appId = import.meta.env.SHOPRO_WxAppId; //微信小程序
//#endif
await uni.requestMerchantTransfer({
mchId: mchId,
appId: appId,
package: currentOrderPackage.value,
complete: (res) => {
if (res.errMsg === 'requestMerchantTransfer:ok') {
uni.showToast({
title: '确认成功',
icon: 'success',
});
loadRecords(true);
} else {
uni.showToast({
title: '用户取消确认',
icon: 'none',
});
}
},
});
} catch (err) {
console.log(err);
uni.showToast({
title: '确认失败: ' + err,
icon: 'none',
})
} finally {}
手机型号:
现在确认收款提示如下:
请问这个大概是什么原因造成的呢?
