diff --git a/assets/js/joe.global.js b/assets/js/joe.global.js index 1133819..0acddb2 100644 --- a/assets/js/joe.global.js +++ b/assets/js/joe.global.js @@ -160,6 +160,7 @@ document.addEventListener('DOMContentLoaded', () => { const style = $('.joe_aside__item.weather').attr('data-style'); const aqiColor = { 1: 'FFFFFF', 2: '4A4A4A', 3: 'FFFFFF' }; window.WIDGET = { CONFIG: { layout: 2, width: '220', height: '270', background: style, dataColor: aqiColor[style], language: 'zh', key: key } }; + $.getScript("https://apip.weatherdt.com/standard/static/js/weather-standard.js?v=2.0") } } diff --git a/core/function.php b/core/function.php index b15c238..65d09ef 100644 --- a/core/function.php +++ b/core/function.php @@ -3,7 +3,7 @@ /* 获取主题当前版本号 */ function _getVersion() { - return "5.2.1"; + return "5.2.2"; }; /* 判断是否是手机 */ diff --git a/functions.php b/functions.php index 2ae7669..d8c60f5 100644 --- a/functions.php +++ b/functions.php @@ -372,7 +372,7 @@ function themeConfig($form) $JAside_Author_Nav->setAttribute('class', 'joe_content joe_aside'); $form->addInput($JAside_Author_Nav->multiMode()); - $JAside_Weather_Key = new Typecho_Widget_Helper_Form_Element_Textarea( + $JAside_Weather_Key = new Typecho_Widget_Helper_Form_Element_Text( 'JAside_Weather_Key', NULL, NULL, diff --git a/public/include.php b/public/include.php index 66670b0..cdae624 100644 --- a/public/include.php +++ b/public/include.php @@ -69,7 +69,6 @@ - options->JCursorEffects && $this->options->JCursorEffects !== 'off') : ?>