Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Y
yd-backend
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
AutogeneralShanghai
yd-backend
Commits
f571e692
Commit
f571e692
authored
May 14, 2020
by
yao.xiao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改-图片限制
parent
985cf96d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
yd-api/src/main/java/com/yd/api/practitioner/service/impl/PractitionerServiceImpl.java
+3
-3
No files found.
yd-api/src/main/java/com/yd/api/practitioner/service/impl/PractitionerServiceImpl.java
View file @
f571e692
...
@@ -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");
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment