Przeglądaj źródła

Merge branch 'main' of http://123.60.19.203:8088/408249787/youxi-app

whj 3 dni temu
rodzic
commit
f155e73dbe
1 zmienionych plików z 4 dodań i 4 usunięć
  1. 4 4
      components/lock.uvue

+ 4 - 4
components/lock.uvue

@@ -33,15 +33,15 @@ const handlePay = async () => {
     const { prepayId, outTradeNo } = await wechatPay({
       subjectId: props.record.subjectId,
     })
-    const { signature } = await wechatPayRequest({
+    const { signature,timestamp,nonceStr } = await wechatPayRequest({
       prepayId, outTradeNo
     })
     console.log(signature)
     uni.requestPayment({
       provider: "wxpay",
-      timeStamp: String(new Date().getTime().toString()),
-      nonceStr: outTradeNo,
-      package: prepayId,
+      timeStamp: timestamp,
+      nonceStr: nonceStr,
+      package: "prepay_id="+prepayId,
       paySign: signature,
       signType: "RSA",
       success: (res) => {