From f2911e0b138a2f8db5c4b9374e499e4c716712e8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=94=A8=E6=88=B7=E5=90=8D?= <邮箱> Date: Wed, 2 Aug 2023 13:50:05 +0800 Subject: [PATCH] test --- mobile/dalianpay/demo/pay.php | 3 ++- mobile/plugins/payment/wxpay.php | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/mobile/dalianpay/demo/pay.php b/mobile/dalianpay/demo/pay.php index 5e06c9a..c957f63 100644 --- a/mobile/dalianpay/demo/pay.php +++ b/mobile/dalianpay/demo/pay.php @@ -4,6 +4,7 @@ session_start(); // $openid = $_SESSION['openid']; $openid = $_GET['openid']; + $reqsn = $_GET['reqsn']; var_dump($openid); $redirect_url = $_SESSION['prev_url']; // unset($_SESSION['prev_url']); @@ -38,7 +39,7 @@ // 'termcode' => $config['termcode'], 'version' => $config['version'], 'trxamt' => '1', // total_fee - 'reqsn' => uniqid($reqsn_prefix), // 交易订单号 + 'reqsn' => $reqsn, // 交易订单号 'producp' => 'JX0002', 'transtype' => 'JSP501', // 微信支付 'paytype' => 'W02', // 微信js支付 diff --git a/mobile/plugins/payment/wxpay.php b/mobile/plugins/payment/wxpay.php index 6de33bd..1f4f238 100755 --- a/mobile/plugins/payment/wxpay.php +++ b/mobile/plugins/payment/wxpay.php @@ -203,7 +203,7 @@ class wxpay var_dump($url); $_SESSION['prev_url'] = $url; var_dump($_SESSION['prev_url']); - header('Location: https://shop.heavenk.com/mobile/dalianpay/demo/pay.php?openid=' . $_SESSION['openid']); + header('Location: https://shop.heavenk.com/mobile/dalianpay/demo/pay.php?openid=' . $_SESSION['openid'] . '&reqsn=' . $order['order_sn']); // // header('Location: https://www.baidu.com'); // exit; // 终止当前脚本的执行,确保页面跳转生效 // require_once('../../demo/pay.php');