Browse Source

test

master
用户名 3 years ago
parent
commit
6ae33e2c84
  1. 3
      mobile/blank.php
  2. 4
      mobile/dalianpay/config/config.php
  3. 10
      mobile/plugins/payment/wxpay.php

3
mobile/blank.php

@ -47,7 +47,10 @@ if (!$userinfo || !isset($userinfo['openid'])) {
exit;
}
$_SESSION['openid'] = $openid;
echo $openid;
header('Location: $referer');
exit;
// 用户授权成功,这里可以将用户信息保存到数据库中,或者进行其他操作
// var_dump($userinfo);

4
mobile/dalianpay/config/config.php

@ -23,9 +23,9 @@
'private_key' => dirname(__FILE__) . '/../cert/cus_private_key.pem',
// 统一支付接口 测试地址
// 'pay_url' => 'https://open.dalianpay.cn/payapi/unitorder/pay',
'pay_url' => 'https://open.dalianpay.cn/payapi/unitorder/pay',
// 统一支付接口
'pay_url' => 'https://epay.dalianpay.cn/payapi/unitorder/pay',
// 'pay_url' => 'https://epay.dalianpay.cn/payapi/unitorder/pay',
// 统一扫码接口 测试地址
'scan_url' => 'https://open.dalianpay.cn/payapi/unitorder/scanqrpay',

10
mobile/plugins/payment/wxpay.php

@ -214,12 +214,12 @@ class wxpay
// $openid = $this->get_openid();
// 将当前页面url保存到$_SESSION中,供其他页面跳转
// $url = "https://$_SERVER[HTTP_HOST]$_SERVER[REQUEST_URI]";
// $_SESSION['prev_url'] = $url;
// header('Location: https://shop.heavenk.com/mobile/blank.php');
// exit; // 终止当前脚本的执行,确保页面跳转生效
$url = "https://$_SERVER[HTTP_HOST]$_SERVER[REQUEST_URI]";
$_SESSION['prev_url'] = $url;
header('Location: https://shop.heavenk.com/mobile/blank.php');
exit; // 终止当前脚本的执行,确保页面跳转生效
// $_SESSION['openid'] = $openid;
$_SESSION['openid'] = 'oCTanxBeiVFWlekJT_GiPZM2UiGY'; //sc_test
// $_SESSION['openid'] = 'oCTanxBeiVFWlekJT_GiPZM2UiGY'; //sc_test
}
$order_amount = $order['order_amount'] * 100;

Loading…
Cancel
Save