overload(); } Daily::run(); MasterSite::run(); Danmu::run(); GiftSend::run(); Heart::run(); Silver::run(); Task::run(); Silver2Coin::run(); GroupSignIn::run(); Live::run(); GiftHeart::run(); Winning::run(); MaterialObject::run(); TcpClient::run(); Storm::run(); PkRaffle::run(); UnifyRaffle::run(); Guard::run(); Anchor::run(); Statistics::run(); usleep(0.2 * 1000000); } } protected static function loadConfigFile() { $file_path = __DIR__ . '/conf/' . self::$conf_file; if (is_file($file_path) && self::$conf_file != 'user.conf') { $load_files = [ self::$conf_file, ]; } else { $default_file_path = __DIR__ . '/conf/user.conf'; if (!is_file($default_file_path)) { exit('默认加载配置文件不存在,请按照文档添加配置文件!'); } $load_files = [ 'user.conf', ]; } foreach ($load_files as $load_file) { self::$dotenv = new Dotenv(__DIR__ . '/conf', $load_file); self::$dotenv->load(); } // load ACCESS_KEY Login::run(); self::$dotenv->overload(); } } // LOAD $conf_file = isset($argv[1]) ? $argv[1] : 'user.conf'; // RUN Index::run($conf_file);