Authored by 郝肖肖

Merge branch 'release/4.4' of http://git.dev.yoho.cn/web/yohobuy into release/4.4

... ... @@ -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);
}
... ...