From e0f191216686767516fd0f2b47eba39106291b36 Mon Sep 17 00:00:00 2001 From: LiCaoZ Date: Sat, 21 May 2022 14:52:28 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E5=A2=9E=E5=8A=A0=E4=BD=BF=E7=94=A8=20?= =?UTF-8?q?fastly=20=E5=92=8C=20gcore=20=E7=9A=84=20jsDelivr=20CDN=20?= =?UTF-8?q?=E6=9C=8D=E5=8A=A1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- libs/G.class.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/libs/G.class.php b/libs/G.class.php index 8a399b7..d26c5bf 100644 --- a/libs/G.class.php +++ b/libs/G.class.php @@ -240,6 +240,10 @@ public static function staticUrl($path) return 'https://cdn.jsdelivr.net/gh/youranreus/G@v' . self::$version . '/' . $path; else if (self::$config['cdn'] == 'sourcestorage') return 'https://source.ahdark.com/typecho/theme/G-theme/' . self::$version . '/' . $path; + else if (self::$config['cdn'] == 'jsdfastly') + return 'https://fastly.jsdelivr.net/gh/youranreus/G@v' . self::$version . '/' . $path; + else if (self::$config['cdn'] == 'jsdgcore') + return 'https://gcore.jsdelivr.net/gh/youranreus/G@v' . self::$version . '/' . $path; else return self::$config['cdn'] . $path; }