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; // 读取支持列表