diff --git a/purge-azure-global-cdn/package.json b/purge-azure-global-cdn/package.json index 5023b1de..c3676107 100644 --- a/purge-azure-global-cdn/package.json +++ b/purge-azure-global-cdn/package.json @@ -1,6 +1,6 @@ { "name": "purge-azure-global-cdn", - "version": "1.1.0", + "version": "1.1.1", "title": "刷新 Azure 国际版 CDN", "description": "当资源被更新时,自动刷新 Azure 国际版 CDN 的缓存。不适用于 Azure 中国版。", "author": "Honoka Tech LTD(GB)", diff --git a/purge-azure-global-cdn/src/PurgeCDN.php b/purge-azure-global-cdn/src/PurgeCDN.php index 597a747d..14891e2a 100644 --- a/purge-azure-global-cdn/src/PurgeCDN.php +++ b/purge-azure-global-cdn/src/PurgeCDN.php @@ -38,17 +38,17 @@ public function handle(PluginManager $plugins) // 列出需要刷新的 URL $name = urlencode($this->player->name); $urls = ['/'. $name.'.json', '/csl/'.$name.'.json']; - if (isset($usm) && $usm->enabled) { + if (isset($usm) && $usm->isEnabled()) { $urls[] = '/usm/' . $name . '.json'; } - if (isset($legacy) && $legacy->enabled) { + if (isset($legacy) && $legacy->isEnabled()) { array_push( $urls, '/skin/' . $name . '.png', '/cape/' . $name . '.png' ); } - if (isset($yggdrasil) && $yggdrasil->enabled) { + if (isset($yggdrasil) && $yggdrasil->isEnabled()) { $uuid = DB::table('uuid')->where('name', $name)->value('uuid'); array_push( $urls, diff --git a/refresh-qcloud-cdn/bootstrap.php b/refresh-qcloud-cdn/bootstrap.php index 6905dac4..ad91d083 100644 --- a/refresh-qcloud-cdn/bootstrap.php +++ b/refresh-qcloud-cdn/bootstrap.php @@ -19,11 +19,11 @@ $baseUrl . '/csl/' . $name . '.json', ]; - if (isset($usm) && $usm->enabled) { + if (isset($usm) && $usm->isEnabled()) { $urls[] = $baseUrl . '/usm/' . $name . '.json'; } - if (isset($legacy) && $legacy->enabled) { + if (isset($legacy) && $legacy->isEnabled()) { array_push( $urls, $baseUrl . '/skin/' . $name . '.png', @@ -31,7 +31,7 @@ ); } - if (isset($yggdrasil) && $yggdrasil->enabled) { + if (isset($yggdrasil) && $yggdrasil->isEnabled()) { $uuid = DB::table('uuid')->where('name', $name)->value('uuid'); array_push( $urls, diff --git a/refresh-qcloud-cdn/package.json b/refresh-qcloud-cdn/package.json index 10157cb5..5b27accd 100644 --- a/refresh-qcloud-cdn/package.json +++ b/refresh-qcloud-cdn/package.json @@ -1,6 +1,6 @@ { "name": "refresh-qcloud-cdn", - "version": "2.1.1", + "version": "2.1.2", "title": "刷新腾讯云 CDN", "description": "当角色信息被更新时,自动刷新 CDN 中的 JSON Profile。", "author": "GPlane",