summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBigCoke233 <hi@guhub.cn>2020-04-16 10:43:03 +0800
committerBigCoke233 <hi@guhub.cn>2020-04-16 10:43:03 +0800
commit3251231be267a9aedff58333c6507cce651f960f (patch)
treec9ecc38cab97c7a78a8b1109c17b546ed87910b4
parenta41eadd4f33b7f89dbf9c04964d55efd74583c32 (diff)
:coffee: Perf: 9jojo CDN 的调用方式改变
-rw-r--r--functions.php2
-rwxr-xr-xlibs/Options.php4
2 files changed, 3 insertions, 3 deletions
diff --git a/functions.php b/functions.php
index d6d4f73..7812c8f 100644
--- a/functions.php
+++ b/functions.php
@@ -91,7 +91,7 @@ function generate_require($files,$type,$cdn,$custom) {
$path = 'https://rawcdn.githack.com/BigCoke233/miracles/master/assets/';
}
elseif ($cdn=='5'){
- $path = 'https://cdn.9jojo.cn/Miracles/';
+ $path = 'https://cdn.9jojo.cn/Miracles/'.themeVersion().'/';
}
elseif ($cdn=='3'){
$path = $custom;
diff --git a/libs/Options.php b/libs/Options.php
index 4f3bf6a..380a4be 100755
--- a/libs/Options.php
+++ b/libs/Options.php
@@ -146,11 +146,11 @@ function themeConfig($form) {
$CDN = new Typecho_Widget_Helper_Form_Element_Select('CDN',array(
'0'=>'关闭',
'1'=>'jsDelivr',
+ '5'=>'9jojo CDN',
'2'=>'GitHack(实时更新)',
'4'=>'GitHack CDN(较慢)',
- '5'=>'9jojo CDN(实时更新)',
'3'=>'自定义'),'0','<h2>优化</h2>CDN 加速加载静态资源(Beta)',
- '开启后静态资源文件通过选择的 CDN 进行调用,加快网页加载速度。如果选择自定义则需要填写下一个设置项。<br>* 如果你使用开发版,请不要选择 jsDelivr 作为 CDN<br>* GitHack 和 9jojo 是实时更新的,如果你不是随时更新开发版,最好不要选用<br>* GitHack CDN 速度较慢,国内不建议使用,<del>就是拿来凑数的</del><br>在这里感谢<a href="https://github.com/SatoSouta/9jojo">小太</a>为 Miracles 提供 9jojo CDN');
+ '开启后静态资源文件通过选择的 CDN 进行调用,加快网页加载速度。如果选择自定义则需要填写下一个设置项。<br>* 如果你使用开发版,请不要选择 jsDelivr/9jojo 作为 CDN<br>* GitHack 是实时更新的,如果你不是随时更新开发版,最好不要选用<br>* GitHack CDN 速度较慢,国内不建议使用,<del>就是拿来凑数的</del><br>在这里感谢<a href="https://github.com/SatoSouta/9jojo">小太</a>为 Miracles 提供 9jojo CDN');
$form->addInput($CDN);
$customCDN = new Typecho_Widget_Helper_Form_Element_Text('customCDN', NULL, '', _t('自定义 CDN'), _t('输入 CDN 的链接,要保证写入的路径下,目录结构和主题的 assets 目录下一致'));
$form->addInput($customCDN);