This commit is contained in:
devil_gong
2018-11-22 18:42:46 +08:00
parent f687afe2cf
commit f929594025
3 changed files with 44 additions and 4 deletions

View File

@ -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'],