feat;微信支付

This commit is contained in:
2026-07-24 12:32:25 +08:00
parent 22a8f279f7
commit 618a7ee28e
2 changed files with 18 additions and 11 deletions
+4 -4
View File
@@ -9,7 +9,7 @@ import { feedback } from "@/api/payment.js";
export function appWxpayFun(alipay, orderId, orderNum) {
const type = alipay.type;
const orderStr = alipay.orderStr;
console.log("微信支付---", alipay,type);
console.log("微信支付---", alipay, type);
if (type === "app") {
// app
const orderInfo = {
@@ -44,10 +44,10 @@ export function appWxpayFun(alipay, orderId, orderNum) {
signType: "RSA",
paySign: alipay.sign, // 签名,这里用的 MD5/RSA 签名
};
console.log("微信小程序支付---", orderInfo);
console.log("微信小程序支付---", orderInfo);
uni.requestPayment({
...orderInfo,
...orderInfo,
success: function (res) {
console.log("success:" + res);
payFeedbackFun(orderId, orderNum, 1);