<?php
/**
 * ------------------------ 
 *  版权所有  www.tecmz.com
 *  商业版本请购买正版授权使用
 * ------------------------
*/ namespace Module\PayCenter\Support; use ModStart\Core\Exception\BizException; use ModStart\Core\Input\InputPackage; use ModStart\Core\Input\Response; use Module\PayCenter\Util\PayOrderUtil; class PayCenterPerform { public function performSubmitOrder($qhsmj, $vfjVR, $iU3m_, $cllT8, $qOrzw = array()) { goto Rl_L4; GjaEQ: $C30Ed = $WZ8dY->getTrimString('redirect'); goto pZbNo; pZbNo: $HsIf6 = PayOrderUtil::prepareOrder($qhsmj, $vfjVR, $iU3m_, $cllT8, $C30Ed, $qOrzw); goto XTSWp; XTSWp: $qoQHX = PayOrderUtil::getOrderSecretId($HsIf6['id']); goto ujlZR; ujlZR: $qZT4K = modstart_web_url('pay', array('order' => $qoQHX)); goto NmjrL; NmjrL: return Response::generate(0, null, array('payUrl' => $qZT4K, 'orderSecretId' => $qoQHX), $qZT4K); goto TYSVE; Rl_L4: $WZ8dY = InputPackage::buildFromInput(); goto GjaEQ; TYSVE: } public function performRedirectOrderPay($qhsmj, $vfjVR, $iU3m_ = null, $cllT8 = null, $C30Ed = null, $qOrzw = array()) { $Tbn6c = $this->performRedirectOrderPayUrl($qhsmj, $vfjVR, $iU3m_, $cllT8, $C30Ed, $qOrzw); return Response::redirect($Tbn6c['data']['payUrl']); } private function performRedirectOrderPayUrl($qhsmj, $vfjVR, $iU3m_ = null, $cllT8 = null, $C30Ed = null, $qOrzw = array()) { goto Soxv0; Qozsq: return Response::generateSuccessData(array('payUrl' => $qZT4K)); goto qEJHA; Soxv0: $HsIf6 = PayOrderUtil::prepareOrder($qhsmj, $vfjVR, $iU3m_, $cllT8, $C30Ed, $qOrzw); goto sdVTD; zjMda: $qZT4K = modstart_web_url('pay') . "?order={$qoQHX}"; goto Qozsq; sdVTD: $qoQHX = PayOrderUtil::getOrderSecretId($HsIf6['id']); goto zjMda; qEJHA: } }