/** * 解析配置文件位置参数 * @param $opt */ public static function params_c($opt) { if (isset($opt["c"]) && $opt["c"]) { Crontab::$config_file = $opt["c"]; } if (isset($opt["config"]) && $opt["config"]) { Crontab::$config_file = $opt["config"]; } if (empty(Crontab::$config_file)) { Crontab::$config_file = ROOT_PATH . "config/crontab.php"; } }