From 1550eed2c5248c45d8f4dd12f0c5cd54cb2db9ee Mon Sep 17 00:00:00 2001 From: admin Date: Tue, 1 Apr 2025 10:31:27 +0800 Subject: [PATCH] =?UTF-8?q?refactor:=20=E4=BC=98=E5=8C=96=E7=BD=91?= =?UTF-8?q?=E7=9B=98=E7=B1=BB=E5=9E=8B=E5=88=A4=E6=96=AD=E9=80=BB=E8=BE=91?= =?UTF-8?q?=E5=B9=B6=E4=BF=AE=E5=A4=8D=E6=A8=A1=E6=9D=BF=E8=AF=AD=E6=B3=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 在 `Transfer.php` 中添加 `fast.uc.cn` 域名支持 - 将 `3.php` 中的 ` 1, + 'aliyundrive.com' => 1, + 'baidu.com' => 2, + 'uc.cn' => 3, + 'xunlei.com' => 4 + ]; + + foreach ($domains as $domain => $type) { + if (strpos($url, $domain) !== false) { + return $type; + } } + + // 默认值是夸克网盘,返回 0 + return 0; } /** diff --git a/extend/netdisk/Transfer.php b/extend/netdisk/Transfer.php index 3a01a66..ae68119 100644 --- a/extend/netdisk/Transfer.php +++ b/extend/netdisk/Transfer.php @@ -64,6 +64,7 @@ class Transfer 'www.aliyundrive.com' => 1, 'pan.baidu.com' => 2, 'drive.uc.cn' => 3, + 'fast.uc.cn' => 3, // 'pan.xunlei.com' => 4, ]; diff --git a/public/install/templates/3.php b/public/install/templates/3.php index 145c4de..4716982 100644 --- a/public/install/templates/3.php +++ b/public/install/templates/3.php @@ -30,7 +30,7 @@
- + 数据库名: