<?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($Dnlri, $dY0xr, $FF4cr, $ZI5AS, $KJ3xr = array()) { goto ZasUv; uYxFP: $uBQi3 = $Ylazq->getTrimString('redirect'); goto yaHWS; JeZO_: $yIijQ = PayOrderUtil::getOrderSecretId($MZHZc['id']); goto qV3B_; qV3B_: $WHKmT = modstart_web_url('pay', array('order' => $yIijQ)); goto dNQTN; ZasUv: $Ylazq = InputPackage::buildFromInput(); goto uYxFP; dNQTN: return Response::generate(0, null, array('payUrl' => $WHKmT, 'orderSecretId' => $yIijQ), $WHKmT); goto VeeKE; yaHWS: $MZHZc = PayOrderUtil::prepareOrder($Dnlri, $dY0xr, $FF4cr, $ZI5AS, $uBQi3, $KJ3xr); goto JeZO_; VeeKE: } public function performRedirectOrderPay($Dnlri, $dY0xr, $FF4cr = null, $ZI5AS = null, $uBQi3 = null, $KJ3xr = array()) { $Gs3Xd = $this->performRedirectOrderPayUrl($Dnlri, $dY0xr, $FF4cr, $ZI5AS, $uBQi3, $KJ3xr); return Response::redirect($Gs3Xd['data']['payUrl']); } private function performRedirectOrderPayUrl($Dnlri, $dY0xr, $FF4cr = null, $ZI5AS = null, $uBQi3 = null, $KJ3xr = array()) { goto EJSRU; xbEIR: return Response::generateSuccessData(array('payUrl' => $WHKmT)); goto xBkgi; EJSRU: $MZHZc = PayOrderUtil::prepareOrder($Dnlri, $dY0xr, $FF4cr, $ZI5AS, $uBQi3, $KJ3xr); goto j0A6o; j0A6o: $yIijQ = PayOrderUtil::getOrderSecretId($MZHZc['id']); goto lzbSe; lzbSe: $WHKmT = modstart_web_url('pay') . "?order={$yIijQ}"; goto xbEIR; xBkgi: } }