From 1e6de755bdf19e799a3c261d4500672498bb9f6e Mon Sep 17 00:00:00 2001 From: ch Date: Thu, 30 Jun 2022 16:43:45 +0800 Subject: [PATCH] =?UTF-8?q?APP=E6=94=AF=E4=BB=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/common/utils/alipay.js | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/src/common/utils/alipay.js b/src/common/utils/alipay.js index 4f37359..dffee51 100644 --- a/src/common/utils/alipay.js +++ b/src/common/utils/alipay.js @@ -2,7 +2,7 @@ * @Author: ch * @Date: 2022-04-29 14:26:10 * @LastEditors: ch - * @LastEditTime: 2022-06-29 17:25:38 + * @LastEditTime: 2022-06-30 16:03:35 * @Description: file content */ @@ -19,15 +19,7 @@ export const Alipay = async ({orderId})=>{ const par = result.payDataInfo; uni.requestPayment({ provider: 'alipay', - orderInfo :{ - "appid": par.appId, // 微信开放平台 - 应用 - AppId - "noncestr": par.nonceStr, // 随机字符串 - "package": par.packageValue, // 固定值 - "partnerid": par.partnerId, // 微信支付商户号 - "prepayid": par.prepayId, // 统一下单订单号 - "timestamp": par.timeStamp ,// 时间戳(单位:秒) - "sign": par.sign // 签名,这里用的 MD5 签名 - }, + orderInfo :par.payData, success(res) { uni.navigateTo({ url : `/payResult?orderId=${orderId}&payType=appWx`