// 获取文件后缀名
public function extension($str){
if (strstr($str, '?')) {$file = strstr($str, '?', true);
} else {
$file = $str;
}
$len = strrpos($file, '/') + 1;
$filename = substr($file, $len);
$res = explode('.', $filename);
</
// 获取文件后缀名
public function extension($str){
if (strstr($str, '?')) {