From 19cebaaab73c58ef95cf1af2d67a22e23ee463c1 Mon Sep 17 00:00:00 2001 From: lixiaoyu <1906596264@qq.com> Date: Sat, 23 Sep 2023 17:26:54 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B5=8B=E8=AF=95=E5=B0=8F=E7=A8=8B=E5=BA=8F?= =?UTF-8?q?=E6=94=AF=E4=BB=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- mobile/plugins/payment/wxpay.php | 5 ++--- mobile/source/helpers/dalianpay/demo/dalianpay.php | 2 +- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/mobile/plugins/payment/wxpay.php b/mobile/plugins/payment/wxpay.php index 323d0c7..a130781 100755 --- a/mobile/plugins/payment/wxpay.php +++ b/mobile/plugins/payment/wxpay.php @@ -127,11 +127,10 @@ class wxpay // 调用大连支付接口 require_once(BASE_PATH . 'helpers/dalianpay/demo/dalianpay.php'); $new_plugin = new dalianpay(); - $response_data = $new_plugin->pay($this->encrypt("oLREy46WvzPicqoeEhvryvBRIo5E"), $order['order_sn'], $order_amount); + $response_data = $new_plugin->pay($this->encrypt($_SESSION['openid']), $order['order_sn'], $order_amount); var_dump($response_data); $test=json_decode($response_data, true); - var_dump($test); - var_dump($test['data']); + // 获取微信支付需要的其他参数 $payinfo = $response_data['payinfo']; diff --git a/mobile/source/helpers/dalianpay/demo/dalianpay.php b/mobile/source/helpers/dalianpay/demo/dalianpay.php index 2904590..a65b6d3 100644 --- a/mobile/source/helpers/dalianpay/demo/dalianpay.php +++ b/mobile/source/helpers/dalianpay/demo/dalianpay.php @@ -88,7 +88,7 @@ class dalianpay{ public function pay($openid_crypt, $order_sn, $order_amount) { session_start(); - $openid = $openid_crypt;//$_SESSION['openid']; + $openid = "oLREy46WvzPicqoeEhvryvBRIo5E";//$_SESSION['openid']; // $openid = $this->decrypt($_GET['openid']); // $reqsn = $_GET['reqsn']; // $trxamt = $_GET['trxamt'];