修复缺少isset($configALL['notify_on_change'])判断警告

master
iyuu.cn 5 years ago
parent a9d9fb637d
commit 5418c02227
  1. 2
      app/AutoReseed.php
  2. 4
      init.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;

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

Loading…
Cancel
Save