Commit 4e6bf330 authored by maoying's avatar maoying

修改消防小室图片上传

parent b82e5c78
......@@ -199,13 +199,12 @@ public class FireStationServiceImpl implements IFireStationService {
throw new YeeException("上传图片失败");
}
String photoFile = "";
try{
photoFile = FasConstant.UPLOAD_ROOT_PATH + File.separator + FasConstant.UPLOAD_FIRESTATION_PATH +
File.separator + URLEncoder.encode(fireStation.getName(), "utf-8") + fileName;
} catch (UnsupportedEncodingException e){
throw new YeeException("字符转义失败 ");
}
String photoFile = path + fileName;
// try{
// photoFile = URLEncoder.encode(photoFile, "utf-8");
// } catch (UnsupportedEncodingException e){
// throw new YeeException("字符转义失败 ");
// }
if ( picture != null && picture != "") {
picture += "," + photoFile;
......
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