|
@@ -242,10 +242,10 @@ public class AccessoryServiceImpl extends JyglBaseService<AccessoryEntity, Strin
|
|
|
FileInputStream inStream = null;
|
|
|
FileOutputStream fs = null;
|
|
|
String newurl = entity.getFilepath().replace(oldtype, sstype);
|
|
|
- File newfile = new File(newurl);
|
|
|
+ File newfile = new File(GlobalData.UPLOAD_FILE_PATH + newurl);
|
|
|
// 如果文件夹不存在则创建
|
|
|
if (!newfile.exists() && !newfile.isDirectory()) {
|
|
|
- newfile.mkdir();
|
|
|
+ newfile.mkdirs();
|
|
|
}
|
|
|
try {
|
|
|
inStream = new FileInputStream(file);
|