<?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($ri8KE) { $this->payType = $ri8KE; } public function notifyProcess(array $U8wjN) { switch ($U8wjN['trade_status']) { case 'TRADE_SUCCESS': case 'TRADE_FINISHED': goto IWoaS; hXITK: return true; goto B9ZJS; IWoaS: Log::info('PayCenter.PayAlipayWebNotify.Success', array('out_trade_no' => $U8wjN['out_trade_no'], 'trade_no' => $U8wjN['trade_no'])); goto pTpej; pTpej: $Tbn6c = PayOrderUtil::handleOrderPay($this->payType, $U8wjN['out_trade_no'], array('payOrderId' => $U8wjN['trade_no'])); goto GWnpk; GWnpk: if ($Tbn6c['code']) { return false; } goto hXITK; B9ZJS: } return true; } }