<?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($qhsmj, $vfjVR, $iU3m_, $cllT8, $qOrzw = array()) { goto eaT32; eaT32: $WZ8dY = InputPackage::buildFromInput(); goto AsuEt; gmqQG: return Response::generate(0, null, array('payUrl' => $qZT4K, 'orderSecretId' => $qoQHX), $qZT4K); goto ZzCyL; AsuEt: $C30Ed = $WZ8dY->getTrimString('redirect'); goto etfyh; xv8FL: $qoQHX = PayOrderUtil::getOrderSecretId($HsIf6['id']); goto TFh0s; TFh0s: $qZT4K = modstart_web_url('pay', array('order' => $qoQHX)); goto gmqQG; etfyh: $HsIf6 = PayOrderUtil::prepareOrder($qhsmj, $vfjVR, $iU3m_, $cllT8, $C30Ed, $qOrzw); goto xv8FL; ZzCyL: } private 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 YbPnz; YbPnz: $HsIf6 = PayOrderUtil::prepareOrder($qhsmj, $vfjVR, $iU3m_, $cllT8, $C30Ed, $qOrzw); goto VlMhW; CZTFK: $qZT4K = modstart_web_url('pay') . "?order={$qoQHX}"; goto RY8h1; RY8h1: return Response::generateSuccessData(array('payUrl' => $qZT4K)); goto bWnmk; VlMhW: $qoQHX = PayOrderUtil::getOrderSecretId($HsIf6['id']); goto CZTFK; bWnmk: } }