<?php
/**
 * ------------------------ 
 *  版权所有  www.tecmz.com
 *  商业版本请购买正版授权使用
 * ------------------------
*/ namespace Module\PayCenter\Web\Support; use Illuminate\Support\Facades\Log; use Module\PayCenter\Type\PayType; use Module\PayCenter\Util\PayOrderUtil; use Payment\Notify\PayNotifyInterface; class PayAlipayWebNotify implements PayNotifyInterface { private $payType = null; public function __construct($gDyzf) { $this->payType = $gDyzf; } public function notifyProcess(array $avcnU) { switch ($avcnU['trade_status']) { case 'TRADE_SUCCESS': case 'TRADE_FINISHED': goto CVrm2; CVrm2: Log::info('PayCenter.PayAlipayWebNotify.Success', array('out_trade_no' => $avcnU['out_trade_no'], 'trade_no' => $avcnU['trade_no'])); goto nUjRf; TH8lr: if ($rhLXE['code']) { return false; } goto hYE3G; nUjRf: $rhLXE = PayOrderUtil::handleOrderPay($this->payType, $avcnU['out_trade_no'], array('payOrderId' => $avcnU['trade_no'])); goto TH8lr; hYE3G: return true; goto Hr0o2; Hr0o2: } return true; } }