<?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($sefXk) { self::$list[] = $sefXk; } public static function get() { if (!self::$init) { self::$init = true; foreach (self::$list as $JdFJR => $PSYn9) { if (is_string($PSYn9)) { self::$list[$JdFJR] = app($PSYn9); } } } return self::$list; } public static function updateBiz($Dnlri, $zHIxi, $MNqDV = '', $KJ3xr = array()) { goto Exyr2; k6FIX: foreach (self::get() as $QCsX1) { $QCsX1->update($zHIxi, $MNqDV, $KJ3xr); } goto oai3G; YbO4e: BizException::throwsIfEmpty('SiteUrlProvider.Error -> url empty', $zHIxi); goto k6FIX; Exyr2: $KJ3xr['biz'] = $Dnlri; goto YbO4e; oai3G: } public static function update($zHIxi, $MNqDV = '', $KJ3xr = array()) { BizException::throwsIfEmpty('SiteUrlProvider.Error -> url empty', $zHIxi); foreach (self::get() as $QCsX1) { $QCsX1->update($zHIxi, $MNqDV, $KJ3xr); } } public static function delete($zHIxi) { BizException::throwsIfEmpty('SiteUrlProvider.Error -> url empty', $zHIxi); foreach (self::get() as $QCsX1) { $QCsX1->delete($zHIxi); } } }