From c4e6356d59eb73bc336885b8d1f2abc1cc0e9e22 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=94=A8=E6=88=B7=E5=90=8D?= <邮箱> Date: Thu, 3 Aug 2023 10:08:44 +0800 Subject: [PATCH] test --- mobile/plugins/payment/dalianpay/demo/dalianpay.php | 18 +++++++++--------- mobile/plugins/payment/wxpay.php | 2 +- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/mobile/plugins/payment/dalianpay/demo/dalianpay.php b/mobile/plugins/payment/dalianpay/demo/dalianpay.php index 89b2841..7d93443 100644 --- a/mobile/plugins/payment/dalianpay/demo/dalianpay.php +++ b/mobile/plugins/payment/dalianpay/demo/dalianpay.php @@ -28,8 +28,8 @@ class dalianpay{ // $reqsn = $_GET['reqsn']; // $trxamt = $_GET['trxamt']; - // $openid = $this->decrypt($openid_crypt); - $openid = $openid_crypt; + $openid = $this->decrypt($openid_crypt); + // $openid = $openid_crypt; $reqsn = $order_sn; $trxamt = $order_amount; @@ -165,13 +165,13 @@ class dalianpay{ } } -echo 'hi there.....\r\n'; -$new_plugin = new dalianpay(); -$openid_crypt = 'oCTanxBeiVFWIekJT_GiPZM2UiGY'; -$order_sn = '2023080355427'; -$order_amount = '600'; -$response_data = $new_plugin->pay($openid_crypt,$order_sn,$order_amount); -echo $response_data; +// echo 'hi there.....\n\r'; +// $new_plugin = new dalianpay(); +// $openid_crypt = 'oCTanxBeiVFWIekJT_GiPZM2UiGY'; +// $order_sn = '2023080355427'; +// $order_amount = '600'; +// $response_data = $new_plugin->pay($openid_crypt,$order_sn,$order_amount); +// echo $response_data; ?> diff --git a/mobile/plugins/payment/wxpay.php b/mobile/plugins/payment/wxpay.php index 7d0e8d8..5f9952e 100755 --- a/mobile/plugins/payment/wxpay.php +++ b/mobile/plugins/payment/wxpay.php @@ -138,7 +138,7 @@ class wxpay // exit; // 终止当前脚本的执行,确保页面跳转生效 - echo "Hi there........"; + echo "Hi there........\n\r"; require_once('./dalianpay/demo/dalianpay.php'); $new_plugin = new dalianpay(); $response_data = $new_plugin->pay($this->encrypt($_SESSION['openid']), $order['order_sn'], $order_amount);