src/Start.php
private static function checkDisk()
    {
        if (self::$config['check_disk']) {

            $free = number_format(DISK_TOTAL_SPACE / 1024 / 1024 / 1024, 2);
            if (self::$config['disk_space'] >= $free) {
                $title = URL . ' 磁盘容量不足' . self::$config['disk_space'] . 'G ip:' . getIP() . ' ' . $_SERVER['SERVER_PROTOCOL'];
                dao('Mail')->send(config('send_mail'), $title, $title, array('save_log' => false));
            }
        }
    }
private static function checkDisk()
    {
        if (self::$config['check_disk']) {

            $free = number_format(DISK_TOTAL_SPACE / 1024 / 1024 / 1024, 2);
            if (self::$config['disk_space'] >= $free) {
                $title = URL . ' 磁盘容量不足' . self::$config['disk_space'] . 'G ip:' . getIP() . ' ' . $_SERVER['SERVER_PROTOCOL'];
                dao('Mail')->send(config('send_mail'), $title, $title, array('save_log' => false));
            }
        }
    }
检测磁盘容量