getPaymentInfo($payment_code); if (!$result['code']) { $this->error($result['msg'], 'Memberorder/index'); } $payment_info = $result['data']; //创建支付接口对象 $payment_api = new $payment_info['payment_code']($payment_info); //取得支付结果 $callback_info = $payment_api->verify_return(); if (!$callback_info) { View::assign('result', 'fail'); View::assign('message', lang('order_pay_fail')); } else { View::assign('result', 'success'); View::assign('message', lang('order_payment_success')); } //支付成功后跳转 if ($order_type == 'real_order') { $pay_ok_url = config('ds_config.h5_site_url') . '/pages/member/order/OrderList'; } elseif ($order_type == 'vr_order') { $pay_ok_url = config('ds_config.h5_site_url') . '/pages/member/vrorder/OrderList'; } elseif ($order_type == 'pd_order') { $pay_ok_url = config('ds_config.h5_site_url') . '/pages/member/recharge/RechargeList'; } View::assign('pay_ok_url', $pay_ok_url); return View::fetch('payment_message'); } }