mirror of
https://gitee.com/zongzhige/shopxo.git
synced 2026-07-05 13:22:29 +08:00
pay
This commit is contained in:
@ -71,10 +71,17 @@ class OrderService
|
||||
return DataReturn('支付方式有误', -1);
|
||||
}
|
||||
|
||||
// 发起支付
|
||||
// 回调地址
|
||||
$url = __MY_URL__.'payment_order_'.strtolower($payment[0]['payment']);
|
||||
|
||||
// 开放平台用户penid
|
||||
$temp_key = APPLICATION_CLIENT_TYPE.'_openid';
|
||||
$user_openid = isset($params['user'][$temp_key]) ? $params['user'][$temp_key] : '';
|
||||
|
||||
// 发起支付
|
||||
$pay_data = array(
|
||||
'out_user' => md5($params['user']['id']),
|
||||
'user_openid' => $user_openid,
|
||||
'order_no' => $order['order_no'],
|
||||
'name' => '订单支付',
|
||||
'total_price' => $order['total_price'],
|
||||
|
||||
Reference in New Issue
Block a user