...
|
...
|
@@ -300,13 +300,14 @@ class AdminExcelDataController extends AdminBaseController |
|
|
|
|
|
//获取文件后缀
|
|
|
public function getFileSuffix($image_url){
|
|
|
$suffix = pathinfo($image_url, PATHINFO_EXTENSION);
|
|
|
if($suffix == 'png'){
|
|
|
//判断文件真实类型
|
|
|
$suffix = getimagesize($image_url);
|
|
|
if($suffix['mime'] == 'image/png'){
|
|
|
//png
|
|
|
return @imagecreatefrompng($image_url);
|
|
|
return imagecreatefrompng($image_url);
|
|
|
}else{
|
|
|
//jpg
|
|
|
return @imagecreatefromjpeg($image_url);
|
|
|
return imagecreatefromjpeg($image_url);
|
|
|
}
|
|
|
}
|
|
|
|
...
|
...
|
|