<?php
/**
 * ------------------------ 
 *  版权所有  www.tecmz.com
 *  商业版本请购买正版授权使用
 * ------------------------
*/ namespace Module\Vendor\Provider\Notifier; use Module\Vendor\Util\NoneLoginOperateUtil; class NotifierProvider { public static function all() { goto h6OcO; h6OcO: static $RLPrP = null; goto pm215; pm215: if (null === $RLPrP) { goto OYntb; TggVx: $RLPrP = array_map(function ($dROTI) { return app($dROTI); }, array_unique($SRjWu)); goto bW2UF; LKIuT: if (empty($SRjWu)) { $SRjWu = array(DefaultNotifierProvider::class); } goto TggVx; OYntb: $SRjWu = config('NotifierProviders'); goto LKIuT; bW2UF: } goto wYh_e; wYh_e: return $RLPrP; goto wJE2j; wJE2j: } public static function notify($uYy4k, $n_9y_, $ZA40Q, $f_HcG = array()) { foreach (self::all() as $vFZTy) { $vFZTy->notify($uYy4k, $n_9y_, $ZA40Q, $f_HcG); } } public static function notifyNoneLoginOperateProcessUrl($uYy4k, $n_9y_, $ZA40Q, $gpQn3, $f_HcG = array()) { goto CQvKl; CQvKl: $wDZ4c = array('domainUrl' => null, 'viewUrl' => null); goto TNdYo; TNdYo: foreach ($wDZ4c as $QBy8K => $cG5OI) { if (isset($f_HcG[$QBy8K])) { $wDZ4c[$QBy8K] = $f_HcG[$QBy8K]; unset($f_HcG[$QBy8K]); } } goto DpNmb; DpNmb: if ($gpQn3) { $A8LV7 = NoneLoginOperateUtil::generateUrl($gpQn3, $f_HcG, $wDZ4c['domainUrl']); $wDZ4c['processUrl'] = $A8LV7; } goto Q5_Zc; Q5_Zc: self::notify($uYy4k, $n_9y_, $ZA40Q, array_merge($f_HcG, $wDZ4c)); goto dAd6Z; dAd6Z: } }