<?php
/**
 * ------------------------ 
 *  版权所有  www.tecmz.com
 *  商业版本请购买正版授权使用
 * ------------------------
*/ namespace Module\Vendor\Provider\Notifier; use Module\Vendor\Util\NoneLoginOperateUtil; class NotifierProvider { public static function all() { goto xwfsS; RgN2L: return $fIKaR; goto l6bij; xwfsS: static $fIKaR = null; goto UQKGv; UQKGv: if (null === $fIKaR) { goto gxVDG; hWJqq: $fIKaR = array_map(function ($qW4M0) { return app($qW4M0); }, array_unique($sskdb)); goto rNLf2; gxVDG: $sskdb = config('NotifierProviders'); goto QWXdG; QWXdG: if (empty($sskdb)) { $sskdb = array(DefaultNotifierProvider::class); } goto hWJqq; rNLf2: } goto RgN2L; l6bij: } public static function notify($g16tm, $H_jRb, $ybjC4, $w6bW5 = array()) { foreach (self::all() as $zgLsz) { $zgLsz->notify($g16tm, $H_jRb, $ybjC4, $w6bW5); } } public static function notifyNoneLoginOperateProcessUrl($g16tm, $H_jRb, $ybjC4, $NMOto, $w6bW5 = array()) { goto tAWot; frzym: self::notify($g16tm, $H_jRb, $ybjC4, array_merge($w6bW5, $qWEzP)); goto iSXBX; tAWot: $qWEzP = array('domainUrl' => null, 'viewUrl' => null); goto a74Ua; a74Ua: foreach ($qWEzP as $KAKiA => $Iim2u) { if (isset($w6bW5[$KAKiA])) { $qWEzP[$KAKiA] = $w6bW5[$KAKiA]; unset($w6bW5[$KAKiA]); } } goto Kk4aa; Kk4aa: if ($NMOto) { $w5Si6 = NoneLoginOperateUtil::generateUrl($NMOto, $w6bW5, $qWEzP['domainUrl']); $qWEzP['processUrl'] = $w5Si6; } goto frzym; iSXBX: } }