From 2d79f79d4e16efd5626781b2347354ce44d09452 Mon Sep 17 00:00:00 2001 From: journey-ad Date: Wed, 29 Aug 2018 22:14:56 +0800 Subject: [PATCH] =?UTF-8?q?V1.2.13=20;=20=E4=BF=AE=E6=AD=A3autoplay?= =?UTF-8?q?=E5=B1=9E=E6=80=A7=E4=B8=BAfalse=E6=97=B6=E4=BB=8D=E4=BC=9A?= =?UTF-8?q?=E8=87=AA=E5=8A=A8=E6=92=AD=E6=94=BE=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Plugin.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Plugin.php b/Plugin.php index 4824574..b2f4fab 100644 --- a/Plugin.php +++ b/Plugin.php @@ -7,7 +7,7 @@ * * @package cPlayer * @author journey.ad - * @version 1.2.12 + * @version 1.2.13 * @dependence 13.12.12-* * @link https://github.com/journey-ad/cPlayer-Typecho-Plugin */ @@ -16,7 +16,7 @@ class cPlayer_Plugin implements Typecho_Plugin_Interface { //此变量用以在一个变量中区分多个播放器实例 protected static $playerID = 0; - protected static $VERSION = '1.2.12'; + protected static $VERSION = '1.2.13'; protected static $INTEGRITY = 'sha256-DfhgVlsA1ZGGnu67H8m4gS6sKim08dZwCO51NqiW54Q='; //commit#f9b593d /** * 激活插件方法,如果激活失败,直接抛出异常 @@ -472,7 +472,7 @@ public static function footer() element: element, list: cPlayerOptions[i]['list'], }); - cPlayers[i].music.autoplay = cPlayerOptions[i]['autoplay'] || false; + if(cPlayerOptions[i]['autoplay'] === 'true') cPlayers[i].music.autoplay = true; }; cPlayers = [];cPlayerOptions = []; };