From 6a7264db54960c7398d6670f62c29647b3967528 Mon Sep 17 00:00:00 2001 From: dutsc <1020018707@qq.com> Date: Wed, 30 Aug 2023 16:31:07 +0800 Subject: [PATCH] get front_url --- mobile/plugins/payment/wxpay.php | 10 +++++++--- mobile/source/helpers/dalianpay/demo/dalianpay.php | 5 +++++ 2 files changed, 12 insertions(+), 3 deletions(-) diff --git a/mobile/plugins/payment/wxpay.php b/mobile/plugins/payment/wxpay.php index 047e40e..7676bc4 100755 --- a/mobile/plugins/payment/wxpay.php +++ b/mobile/plugins/payment/wxpay.php @@ -143,8 +143,8 @@ class wxpay // $_SESSION['openid'] = 'oCTanxBeiVFWIekJT_GiPZM2UiGY'; //sc_test l or I } // $_SESSION['openid'] = 'oCTanxBeiVFWIekJT_GiPZM2UiGY'; - echo "openid: \r\n"; - var_dump($_SESSION['openid']); + // echo "openid: \r\n"; + // var_dump($_SESSION['openid']); $order_amount = $order['order_amount'] * 100; // 访问大连支付接口 @@ -178,7 +178,7 @@ class wxpay // } // } - echo "123546579\r\n"; + // echo "123546579\r\n"; // 调用大连支付接口 require_once(BASE_PATH . 'helpers/dalianpay/demo/dalianpay.php'); $new_plugin = new dalianpay(); @@ -268,6 +268,10 @@ class wxpay $jsApiParameters = json_encode($jsApiParameters); + // 接收回调front_url参数 + $front_url = $_SESSION['front_url']; + var_dump($front_url); + // wxjsbridge $js = '