From 5418c022276094c0e6265bacac961a2240f3ed76 Mon Sep 17 00:00:00 2001 From: "iyuu.cn" <367013672@qq.com> Date: Fri, 24 Jul 2020 16:03:09 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E7=BC=BA=E5=B0=91isset($conf?= =?UTF-8?q?igALL['notify=5Fon=5Fchange'])=E5=88=A4=E6=96=AD=E8=AD=A6?= =?UTF-8?q?=E5=91=8A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/AutoReseed.php | 2 +- init.php | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/app/AutoReseed.php b/app/AutoReseed.php index 76717e5..955ab38 100644 --- a/app/AutoReseed.php +++ b/app/AutoReseed.php @@ -852,7 +852,7 @@ class AutoReseed private static function wechatMessage() { global $configALL; - if ($configALL['notify_on_change'] && self::$wechatMsg['reseedSuccess'] == 0 && self::$wechatMsg['reseedError'] == 0) { + if (isset($configALL['notify_on_change']) && $configALL['notify_on_change'] && self::$wechatMsg['reseedSuccess'] == 0 && self::$wechatMsg['reseedError'] == 0) { return; } $br = PHP_EOL; diff --git a/init.php b/init.php index c022ca3..5e67cfe 100644 --- a/init.php +++ b/init.php @@ -58,10 +58,10 @@ if (file_exists(ROOT_PATH."/config/config.php")) { echo microtime(true).' 请编辑配置文件config.php,以免后续版本升级覆盖配置!!!'.PHP_EOL; $t = 30; do { - echo microtime(true)." 请编辑配置文件config.php,{$t}秒后继续...".PHP_EOL; + echo microtime(true)." 请编辑配置文件config.php,{$t}秒后退出...".PHP_EOL; sleep(1); } while (--$t > 0); - + exit; } echo microtime(true).' 全局配置载入完成!'.PHP_EOL; // 读取支持列表