Commit 14684c82 by 蘑菇

fix revert

parent a0f6dd8b
......@@ -941,8 +941,7 @@ public class StaffApiServiceImpl implements StaffApiService {
}
//修改
} else {
String url = changeHeaderImageUrl(clerkDTO.getHeadImgUrl());
staff.setHeadImg(url);
staff.setHeadImg(clerkDTO.getHeadImgUrl());
staff.setSex(clerkDTO.getClerkGender());
//staff.setPostion(postion);
// staff.setStaffName(staffName);
......@@ -985,6 +984,7 @@ public class StaffApiServiceImpl implements StaffApiService {
}
private String changeHeaderImageUrl(String headImgUrl) {
try {
InputStream in = new URL(headImgUrl).openStream();
byte[] data = IOUtils.toByteArray(in);
......
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