|
|
@@ -24,6 +24,9 @@ public class LocalStorageService implements StorageService {
|
|
|
@Value("${storage.local_path}")
|
|
|
private String localPath;
|
|
|
|
|
|
+ @Value("${general.host}")
|
|
|
+ private String host;
|
|
|
+
|
|
|
@Override
|
|
|
public String uploadFromInputStream(InputStream fin, String path) {
|
|
|
log.info("本地上传: inputStream -> {}", path);
|
|
|
@@ -58,6 +61,6 @@ public class LocalStorageService implements StorageService {
|
|
|
} catch (IOException e) {
|
|
|
e.printStackTrace();
|
|
|
}
|
|
|
- return "files" + "/" + path;
|
|
|
+ return host + "/files" + "/" + path;
|
|
|
}
|
|
|
}
|