<?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($g16tm, $hbx5Z, $C8kl2, $qhTwW, $w6bW5 = array()) { goto d3LoX; d3LoX: $Km8YS = InputPackage::buildFromInput(); goto aipAz; aipAz: $Ix_Nr = $Km8YS->getTrimString('redirect'); goto VGsP0; VGsP0: $v9Xk2 = PayOrderUtil::prepareOrder($g16tm, $hbx5Z, $C8kl2, $qhTwW, $Ix_Nr, $w6bW5); goto JIVKd; e108a: $MbUgJ = modstart_web_url('pay', array('order' => $kep9x)); goto YFIZi; JIVKd: $kep9x = PayOrderUtil::getOrderSecretId($v9Xk2['id']); goto e108a; YFIZi: return Response::generate(0, null, array('payUrl' => $MbUgJ, 'orderSecretId' => $kep9x), $MbUgJ); goto oJA16; oJA16: } public function performRedirectOrderPay($g16tm, $hbx5Z, $C8kl2 = null, $qhTwW = null, $Ix_Nr = null, $w6bW5 = array()) { $rhLXE = $this->performRedirectOrderPayUrl($g16tm, $hbx5Z, $C8kl2, $qhTwW, $Ix_Nr, $w6bW5); return Response::redirect($rhLXE['data']['payUrl']); } private function performRedirectOrderPayUrl($g16tm, $hbx5Z, $C8kl2 = null, $qhTwW = null, $Ix_Nr = null, $w6bW5 = array()) { goto a6hKi; BgHTs: return Response::generateSuccessData(array('payUrl' => $MbUgJ)); goto J3Npn; bbfgM: $kep9x = PayOrderUtil::getOrderSecretId($v9Xk2['id']); goto xRQr1; xRQr1: $MbUgJ = modstart_web_url('pay') . "?order={$kep9x}"; goto BgHTs; a6hKi: $v9Xk2 = PayOrderUtil::prepareOrder($g16tm, $hbx5Z, $C8kl2, $qhTwW, $Ix_Nr, $w6bW5); goto bbfgM; J3Npn: } }