$class=false!==strpos($config['type'],'\\')?$config['type']:'\\think\\session\\driver\\'.ucwords($config['type']); // 检查驱动类 if(!class_exists($class)||!session_set_save_handler(new$class($config))){ thrownewClassNotFoundException('error session handler:'.$class,$class); ...