|
@@ -242,7 +242,7 @@ public class HouseController extends BaseController {
|
|
|
log.error("[{}]获取不到改名前的名称" , ossObjKey);
|
|
|
continue;
|
|
|
}
|
|
|
- oldImageName = ossObjKey.substring(index);
|
|
|
+ oldImageName = ossObjKey.substring(index + 1);
|
|
|
log.info("照片改名前的名称为:{}" , oldImageName);
|
|
|
//这里改名
|
|
|
String newFilePath = directoryName + newFileName;
|