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'];