<?php
/**
 * ------------------------ 
 *  版权所有  www.tecmz.com
 *  商业版本请购买正版授权使用
 * ------------------------
*/ namespace Module\Vendor\Provider\Notifier; use Module\Vendor\Util\NoneLoginOperateUtil; class NotifierProvider { public static function all() { goto D0FWi; U3IRD: return $Cra5b; goto a7ZR0; Af4or: if (null === $Cra5b) { goto lfxC7; lfxC7: $gZL3O = config('NotifierProviders'); goto ph6iZ; ph6iZ: if (empty($gZL3O)) { $gZL3O = array(DefaultNotifierProvider::class); } goto nEozC; nEozC: $Cra5b = array_map(function ($f_SXj) { return app($f_SXj); }, array_unique($gZL3O)); goto ll8NQ; ll8NQ: } goto U3IRD; D0FWi: static $Cra5b = null; goto Af4or; a7ZR0: } public static function notify($Dnlri, $MNqDV, $eTwx_, $KJ3xr = array()) { foreach (self::all() as $QCsX1) { $QCsX1->notify($Dnlri, $MNqDV, $eTwx_, $KJ3xr); } } public static function notifyNoneLoginOperateProcessUrl($Dnlri, $MNqDV, $eTwx_, $p0rJs, $KJ3xr = array()) { goto yQJaM; sBG_x: if ($p0rJs) { $J6A9c = NoneLoginOperateUtil::generateUrl($p0rJs, $KJ3xr, $KqnhN['domainUrl']); $KqnhN['processUrl'] = $J6A9c; } goto jXMol; yQJaM: $KqnhN = array('domainUrl' => null, 'viewUrl' => null); goto N05hu; jXMol: self::notify($Dnlri, $MNqDV, $eTwx_, array_merge($KJ3xr, $KqnhN)); goto WOf31; N05hu: foreach ($KqnhN as $JdFJR => $PSYn9) { if (isset($KJ3xr[$JdFJR])) { $KqnhN[$JdFJR] = $KJ3xr[$JdFJR]; unset($KJ3xr[$JdFJR]); } } goto sBG_x; WOf31: } }