<?php
/**
 * ------------------------ 
 *  版权所有  www.tecmz.com
 *  商业版本请购买正版授权使用
 * ------------------------
*/ namespace Module\Vendor\Provider\SiteUrl; use ModStart\Core\Exception\BizException; class SiteUrlProvider { private static $list = array(); private static $init = false; public static function register($tDnAb) { self::$list[] = $tDnAb; } public static function get() { if (!self::$init) { self::$init = true; foreach (self::$list as $KAKiA => $Iim2u) { if (is_string($Iim2u)) { self::$list[$KAKiA] = app($Iim2u); } } } return self::$list; } public static function updateBiz($g16tm, $rcuj4, $H_jRb = '', $w6bW5 = array()) { goto OqTjD; MKfFn: BizException::throwsIfEmpty('SiteUrlProvider.Error -> url empty', $rcuj4); goto tSNTd; tSNTd: foreach (self::get() as $zgLsz) { $zgLsz->update($rcuj4, $H_jRb, $w6bW5); } goto oSdWJ; OqTjD: $w6bW5['biz'] = $g16tm; goto MKfFn; oSdWJ: } public static function update($rcuj4, $H_jRb = '', $w6bW5 = array()) { BizException::throwsIfEmpty('SiteUrlProvider.Error -> url empty', $rcuj4); foreach (self::get() as $zgLsz) { $zgLsz->update($rcuj4, $H_jRb, $w6bW5); } } public static function delete($rcuj4) { BizException::throwsIfEmpty('SiteUrlProvider.Error -> url empty', $rcuj4); foreach (self::get() as $zgLsz) { $zgLsz->delete($rcuj4); } } }