|
@@ -126,6 +126,7 @@ public class GoodsController {
|
|
|
if (file.exists()) {
|
|
if (file.exists()) {
|
|
|
try {
|
|
try {
|
|
|
file.delete();
|
|
file.delete();
|
|
|
|
|
+ file.createNewFile();
|
|
|
} catch (Exception imgException) {
|
|
} catch (Exception imgException) {
|
|
|
imgException.printStackTrace();
|
|
imgException.printStackTrace();
|
|
|
}
|
|
}
|
|
@@ -147,6 +148,7 @@ public class GoodsController {
|
|
|
if (file.exists()) {
|
|
if (file.exists()) {
|
|
|
try {
|
|
try {
|
|
|
file.delete();
|
|
file.delete();
|
|
|
|
|
+ file.createNewFile();
|
|
|
} catch (Exception imgException) {
|
|
} catch (Exception imgException) {
|
|
|
imgException.printStackTrace();
|
|
imgException.printStackTrace();
|
|
|
}
|
|
}
|