Commit f571e692 by yao.xiao

修改-图片限制

parent 985cf96d
...@@ -1115,9 +1115,9 @@ public class PractitionerServiceImpl implements com.yd.api.practitioner.service. ...@@ -1115,9 +1115,9 @@ public class PractitionerServiceImpl implements com.yd.api.practitioner.service.
// double width = img.getWidth(null); // double width = img.getWidth(null);
// double height = img.getHeight(null); // double height = img.getHeight(null);
// double value =height/width; // double value =height/width;
// ByteArrayOutputStream os = new ByteArrayOutputStream(); ByteArrayOutputStream os = new ByteArrayOutputStream();
// ImageIO.write(img, "jpg", os); ImageIO.write(img, "jpg", os);
// inputStream = new ByteArrayInputStream(os.toByteArray()); inputStream = new ByteArrayInputStream(os.toByteArray());
// if (value !=1&&(targetUseFor == 1 || targetUseFor == 9)){ // if (value !=1&&(targetUseFor == 1 || targetUseFor == 9)){
// //上传头像尺寸比例为1:1 // //上传头像尺寸比例为1:1
// return ZHBErrorConfig.getErrorInfo("830005"); // return ZHBErrorConfig.getErrorInfo("830005");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment