<?php
/**
 * ------------------------ 
 *  版权所有  www.tecmz.com
 *  商业版本请购买正版授权使用
 * ------------------------
*/ namespace Module\PayCenter\Traits; use ModStart\Core\Exception\BizException; use ModStart\Core\Input\InputPackage; use ModStart\Core\Input\Response; use Module\PayCenter\Util\PayOrderUtil; trait PayCenterPerformTrait { private function performSubmitOrder($g16tm, $hbx5Z, $C8kl2, $qhTwW, $w6bW5 = array()) { goto rMVmE; rad1J: $Ix_Nr = $Km8YS->getTrimString('redirect'); goto kEA93; kEA93: $v9Xk2 = PayOrderUtil::prepareOrder($g16tm, $hbx5Z, $C8kl2, $qhTwW, $Ix_Nr, $w6bW5); goto mgQP8; mgQP8: $kep9x = PayOrderUtil::getOrderSecretId($v9Xk2['id']); goto cMiAz; rMVmE: $Km8YS = InputPackage::buildFromInput(); goto rad1J; cMiAz: $MbUgJ = modstart_web_url('pay', array('order' => $kep9x)); goto z6fZh; z6fZh: return Response::generate(0, null, array('payUrl' => $MbUgJ, 'orderSecretId' => $kep9x), $MbUgJ); goto s9ifI; s9ifI: } private 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 Q6zxB; b3w3t: $kep9x = PayOrderUtil::getOrderSecretId($v9Xk2['id']); goto jut2V; jut2V: $MbUgJ = modstart_web_url('pay') . "?order={$kep9x}"; goto kVKtX; Q6zxB: $v9Xk2 = PayOrderUtil::prepareOrder($g16tm, $hbx5Z, $C8kl2, $qhTwW, $Ix_Nr, $w6bW5); goto b3w3t; kVKtX: return Response::generateSuccessData(array('payUrl' => $MbUgJ)); goto LyUVu; LyUVu: } }