Commit 14684c82 by 蘑菇

fix revert

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