<?php
/**
 * ------------------------ 
 *  版权所有  www.tecmz.com
 *  商业版本请购买正版授权使用
 * ------------------------
*/ namespace Module\PayCenter\Provider; use Illuminate\Support\Facades\Log; use Module\PayCenter\Util\PayOrderUtil; use Payment\Notify\PayNotifyInterface; class AlipayQrPayNotify implements PayNotifyInterface { public function notifyProcess(array $avcnU) { switch ($avcnU['trade_status']) { case 'TRADE_SUCCESS': case 'TRADE_FINISHED': goto qe5x0; qe5x0: Log::info('PayCenter.AlipayQrNotifyVerifySuccess', array('out_trade_no' => $avcnU['out_trade_no'], 'trade_no' => $avcnU['trade_no'])); goto zIxC5; NeKTt: return true; goto c5euL; zIxC5: $rhLXE = PayOrderUtil::handleOrderPay(AlipayQrPayCenterProvider::NAME, $avcnU['out_trade_no'], array('payOrderId' => $avcnU['trade_no'])); goto zKfjY; zKfjY: if ($rhLXE['code']) { return false; } goto NeKTt; c5euL: } return true; } }