chore: modify the default CDN

pull/287/head
Seaton Jiang 2020-06-25 09:38:49 +08:00
parent fb541de21b
commit 44167a1fc6
2 changed files with 4 additions and 4 deletions

View File

@ -3,7 +3,7 @@
* 核心函数 * 核心函数
* @author Seaton Jiang <seaton@vtrois.com> * @author Seaton Jiang <seaton@vtrois.com>
* @license MIT License * @license MIT License
* @version 2020.04.12 * @version 2020.06.25
*/ */
if (kratos_option('g_cdn', false)) { if (kratos_option('g_cdn', false)) {
@ -11,7 +11,7 @@ if (kratos_option('g_cdn', false)) {
'maocloud' => 'https://n3.cdn.vtrois.com/kratos/' . THEME_VERSION, 'maocloud' => 'https://n3.cdn.vtrois.com/kratos/' . THEME_VERSION,
'jsdelivr' => 'https://cdn.jsdelivr.net/gh/vtrois/kratos@' . THEME_VERSION, 'jsdelivr' => 'https://cdn.jsdelivr.net/gh/vtrois/kratos@' . THEME_VERSION,
); );
$asset_path = $cdn_array[kratos_option('g_cdn_n3', 'maocloud')]; $asset_path = $cdn_array[kratos_option('g_cdn_n3', 'jsdelivr')];
} else { } else {
$asset_path = get_template_directory_uri(); $asset_path = get_template_directory_uri();
} }

View File

@ -3,7 +3,7 @@
* 主题选项 * 主题选项
* @author Seaton Jiang <seaton@vtrois.com> * @author Seaton Jiang <seaton@vtrois.com>
* @license MIT License * @license MIT License
* @version 2020.04.12 * @version 2020.06.25
*/ */
function getrobots() function getrobots()
@ -104,7 +104,7 @@ function kratos_options()
$options[] = array( $options[] = array(
'desc' => __('选择 CDN 加速节点', 'kratos'), 'desc' => __('选择 CDN 加速节点', 'kratos'),
'id' => 'g_cdn_n3', 'id' => 'g_cdn_n3',
'std' => 'maocloud', 'std' => 'jsdelivr',
'type' => 'select', 'type' => 'select',
'class' => 'hidden', 'class' => 'hidden',
'options' => $cdn_array, 'options' => $cdn_array,