feat;微信支付
This commit is contained in:
+4
-4
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user