update sheep/platform/pay.js.

Signed-off-by: huppygo <huppygo@qq.com>
pull/143/head
huppygo 2025-02-11 16:00:36 +00:00 committed by Gitee
parent d91d8eb2db
commit 0c88f6c2af
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
1 changed files with 19 additions and 17 deletions

View File

@ -228,14 +228,17 @@ export default class SheepPay {
});
}
// 支付宝支付App TODO 芋艿:待接入【暂时没打包 app所以没接入一般人用不到】
// 支付宝支付App
async alipay() {
let that = this;
const { error, data } = await this.prepay();
if (error === 0) {
const { code, data } = await this.prepay('alipay_app');
if (code !== 0) {
return;
}
uni.requestPayment({
provider: 'alipay',
orderInfo: data.pay_data, //支付宝订单数据
orderInfo: data.displayContent, // 直接使用返回的支付参数
success: (res) => {
that.payResult('success');
},
@ -248,7 +251,6 @@ export default class SheepPay {
},
});
}
}
// 微信支付App TODO 芋艿:待接入:待接入【暂时没打包 app所以没接入一般人用不到】
async wechatAppPay() {