From 80fa8843edc8ce01e61c8e52ec92f7a769b9bd68 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:16:24 +0800 Subject: [PATCH] test --- mobile/plugins/payment/wxpay.php | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/mobile/plugins/payment/wxpay.php b/mobile/plugins/payment/wxpay.php index 2805111..fed0446 100755 --- a/mobile/plugins/payment/wxpay.php +++ b/mobile/plugins/payment/wxpay.php @@ -139,12 +139,13 @@ class wxpay echo "Hi there........\n\r"; - echo BASE_PATH; - require_once('./dalianpay/demo/dalianpay.php'); + echo BASE_PATH . "\n\r"; + echo $this->encrypt($_SESSION['openid']) . "\n\r"; + echo $order['order_sn'] . "\n\r"; + echo $order_amount . "\n\r"; + require_once(BASE_PATH . '../plugins/payment/dalianpay/demo/dalianpay.php'); $new_plugin = new dalianpay(); - echo $this->encrypt($_SESSION['openid']); - echo $order['order_sn']; - echo $order_amount; + $response_data = $new_plugin->pay($this->encrypt($_SESSION['openid']), $order['order_sn'], $order_amount); var_dump($response_data);