Commit a8371a04 authored by maoying's avatar maoying

Merge branch 'v2' into upgrade

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