修正 $ext = ($ext == 'jpe') ? 'jpg' : 'jpg'; 到 $ext = ($ext == 'jpe') ? 'jpg' : $ext;