public static function parsePath($dir) { $Symbol = substr($dir, 0, 1); switch ($Symbol) { case '%': return sys_get_temp_dir() . '/' . substr($dir, 1); //缓存目录 //缓存目录 default: parent::parsePath($dir); } }