|
|
@ -206,10 +206,12 @@ class wxpay |
|
|
// header('Location: https://www.baidu.com'); |
|
|
// header('Location: https://www.baidu.com'); |
|
|
exit; // 终止当前脚本的执行,确保页面跳转生效 |
|
|
exit; // 终止当前脚本的执行,确保页面跳转生效 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// 设置必填参数 |
|
|
// 设置必填参数 |
|
|
// 根目录url |
|
|
// 根目录url |
|
|
$order_amount = $order['order_amount'] * 100; |
|
|
$order_amount = $order['order_amount'] * 100; |
|
|
$this->setParameter("openid", "$_SESSION[openid]"); // 商品描述 |
|
|
$this->setParameter("openid", "$_SESSION[openid]"); // 用户openid |
|
|
$this->setParameter("body", $order['order_sn']); // 商品描述 |
|
|
$this->setParameter("body", $order['order_sn']); // 商品描述 |
|
|
$this->setParameter("out_trade_no", $order['order_sn'] . $order_amount . 'O' . $order['log_id']); // 商户订单号 |
|
|
$this->setParameter("out_trade_no", $order['order_sn'] . $order_amount . 'O' . $order['log_id']); // 商户订单号 |
|
|
$this->setParameter("total_fee", $order_amount); // 总金额 |
|
|
$this->setParameter("total_fee", $order_amount); // 总金额 |
|
|
|