|
@@ -44,9 +44,9 @@ public class CommonController {
|
|
|
private static final DateTimeFormatter DATE_TIME_FORMATTER = DateTimeFormatter.ofPattern("yyyy/MM/dd");
|
|
|
|
|
|
private RedisTemplate<String, Object> redisTemplate;
|
|
|
- private SystemConfiguration systemConfiguration;
|
|
|
- private AnnualInspectionService annualInspectionService;
|
|
|
- private EmergencyRepairService emergencyRepairService;
|
|
|
+ private SystemConfiguration systemConfiguration;
|
|
|
+ private AnnualInspectionService annualInspectionService;
|
|
|
+ private EmergencyRepairService emergencyRepairService;
|
|
|
private CapitalRepairLiftRelevanceService capitalRepairLiftRelevanceService;
|
|
|
private MaintenancePlanService maintenancePlanService;
|
|
|
private AreaCodeMapper codeMapper;
|
|
@@ -108,6 +108,8 @@ public class CommonController {
|
|
|
String url = systemConfiguration.build().putObject(entry.getKey(), entry.getValue().getBytes());
|
|
|
log.info("upload file complete, file URL: {}", url);
|
|
|
Validate.notNull(url, ValuePool.UPLOAD_FAIL);
|
|
|
+ //使用内网上传的文件返回路径需要取消此路径才能访问到
|
|
|
+ url = url.replace("-internal", "");
|
|
|
urls.add(url);
|
|
|
}
|
|
|
return RestResponse.success(urls);
|
|
@@ -138,6 +140,8 @@ public class CommonController {
|
|
|
try {
|
|
|
String url = systemConfiguration.build().putObject(fileName, file.getBytes());
|
|
|
log.info("upload file complete, file URL: {}", url);
|
|
|
+ //使用内网上传的文件返回路径需要取消此路径才能访问到
|
|
|
+ url = url.replace("-internal", "");
|
|
|
return RestResponse.success(url);
|
|
|
} catch (Exception e) {
|
|
|
log.error("upload file occur exception", e);
|