<?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 $smBDO) { switch ($smBDO['trade_status']) { case 'TRADE_SUCCESS': case 'TRADE_FINISHED': goto pvzN6; pvzN6: Log::info('PayCenter.AlipayQrNotifyVerifySuccess', array('out_trade_no' => $smBDO['out_trade_no'], 'trade_no' => $smBDO['trade_no'])); goto K2JLQ; Fegx2: if ($Gs3Xd['code']) { return false; } goto GGzVk; K2JLQ: $Gs3Xd = PayOrderUtil::handleOrderPay(AlipayQrPayCenterProvider::NAME, $smBDO['out_trade_no'], array('payOrderId' => $smBDO['trade_no'])); goto Fegx2; GGzVk: return true; goto ZkvZW; ZkvZW: } return true; } }