<?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($Dnlri, $dY0xr, $FF4cr, $ZI5AS, $KJ3xr = array()) { goto zTtDg; pTl4L: $uBQi3 = $Ylazq->getTrimString('redirect'); goto ZIBzC; vx5xj: return Response::generate(0, null, array('payUrl' => $WHKmT, 'orderSecretId' => $yIijQ), $WHKmT); goto UdvlD; X6qdS: $yIijQ = PayOrderUtil::getOrderSecretId($MZHZc['id']); goto cgV0p; zTtDg: $Ylazq = InputPackage::buildFromInput(); goto pTl4L; ZIBzC: $MZHZc = PayOrderUtil::prepareOrder($Dnlri, $dY0xr, $FF4cr, $ZI5AS, $uBQi3, $KJ3xr); goto X6qdS; cgV0p: $WHKmT = modstart_web_url('pay', array('order' => $yIijQ)); goto vx5xj; UdvlD: } private 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 VM_17; VAB0s: $yIijQ = PayOrderUtil::getOrderSecretId($MZHZc['id']); goto LErhn; LErhn: $WHKmT = modstart_web_url('pay') . "?order={$yIijQ}"; goto l4Vwx; l4Vwx: return Response::generateSuccessData(array('payUrl' => $WHKmT)); goto UKFPi; VM_17: $MZHZc = PayOrderUtil::prepareOrder($Dnlri, $dY0xr, $FF4cr, $ZI5AS, $uBQi3, $KJ3xr); goto VAB0s; UKFPi: } }