<?php
/**
 * ------------------------ 
 *  版权所有  www.tecmz.com
 *  商业版本请购买正版授权使用
 * ------------------------
*/ namespace Module\Vendor\Provider\Notifier; use Module\Vendor\Util\NoneLoginOperateUtil; class NotifierProvider { public static function all() { goto JL4oe; JL4oe: static $NuyUR = null; goto xpviU; xpviU: if (null === $NuyUR) { goto wxbyN; VTNUV: if (empty($V1aBh)) { $V1aBh = array(DefaultNotifierProvider::class); } goto mlBS0; wxbyN: $V1aBh = config('NotifierProviders'); goto VTNUV; mlBS0: $NuyUR = array_map(function ($q4mae) { return app($q4mae); }, array_unique($V1aBh)); goto FUvAH; FUvAH: } goto j8EdI; j8EdI: return $NuyUR; goto eRRKj; eRRKj: } public static function notify($zPmUw, $DvG1n, $Ral1i, $FRVtF = array()) { foreach (self::all() as $hKL6P) { $hKL6P->notify($zPmUw, $DvG1n, $Ral1i, $FRVtF); } } public static function notifyNoneLoginOperateProcessUrl($zPmUw, $DvG1n, $Ral1i, $xImzZ, $FRVtF = array()) { goto c15D0; mlfwK: if ($xImzZ) { $qXBHU = NoneLoginOperateUtil::generateUrl($xImzZ, $FRVtF, $xNoxe['domainUrl']); $xNoxe['processUrl'] = $qXBHU; } goto wh6eZ; DHPTF: foreach ($xNoxe as $F4wee => $SxG_W) { if (isset($FRVtF[$F4wee])) { $xNoxe[$F4wee] = $FRVtF[$F4wee]; unset($FRVtF[$F4wee]); } } goto mlfwK; c15D0: $xNoxe = array('domainUrl' => null, 'viewUrl' => null); goto DHPTF; wh6eZ: self::notify($zPmUw, $DvG1n, $Ral1i, array_merge($FRVtF, $xNoxe)); goto UYe2i; UYe2i: } }