...
|
...
|
@@ -475,10 +475,10 @@ class ReturnsModel |
|
|
$result['code'] = 400;
|
|
|
$result['message'] = '文件上传错误';
|
|
|
} else {
|
|
|
$type = array('image/png','image/jpeg','image/bmp','image/gif');
|
|
|
if (!in_array($_FILES['fileData']['type'],$type)) {
|
|
|
return array('code'=>'400','message'=>'图片格式错误');
|
|
|
}
|
|
|
// $type = array('image/png','image/jpeg','image/bmp','image/gif');
|
|
|
// if (!in_array($_FILES['fileData']['type'],$type)) {
|
|
|
// return array('code'=>'400','message'=>'图片格式错误');
|
|
|
// }
|
|
|
$result = Images::saveImage($filename);
|
|
|
}
|
|
|
|
...
|
...
|
|