From 7ce7aea0fd25a5a5f3d1fe40106caf498e9f6e94 Mon Sep 17 00:00:00 2001 From: "cn.yimian.xyz" Date: Thu, 19 May 2022 16:47:11 +0800 Subject: [PATCH] fastly.jsdelivr --- functions.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/functions.php b/functions.php index 1e9a23c..bed9207 100755 --- a/functions.php +++ b/functions.php @@ -321,7 +321,9 @@ function getImgCDNProxy($path){ function getImgCDN($path){ if(stripos($path, 'moe') !== false){ preg_match_all('/img_(\S*?)_(\d{2,4})x(\d{2,4})_(\S*?)_(\S*?)_(\S*?).(jpe?g|png|gif|svg)\b/', $path, $arr); - return str_replace('moe','https://cdn.jsdelivr.net/npm/ushio-api-img-moe@5.0.'.intval($arr[1][0]/10).'',$path); + return str_replace('moe','https://fastly.jsdelivr.net/npm/ushio-api-img-moe@5.0.'.intval($arr[1][0]/10).'',$path); + //https://testingcf.jsdelivr.net/ + //https://gcore.jsdelivr.net/ } return getImg($path); }