|
@@ -56,6 +56,7 @@ import vip.xiaonuo.dev.modular.file.util.DevFileTencentUtil;
|
|
|
|
|
|
import java.io.File;
|
|
import java.io.File;
|
|
import java.io.FileInputStream;
|
|
import java.io.FileInputStream;
|
|
|
|
+import java.io.FileOutputStream;
|
|
import java.io.IOException;
|
|
import java.io.IOException;
|
|
import java.math.BigDecimal;
|
|
import java.math.BigDecimal;
|
|
import java.math.RoundingMode;
|
|
import java.math.RoundingMode;
|
|
@@ -116,8 +117,8 @@ public class DevFileServiceImpl extends ServiceImpl<DevFileMapper, DevFile> impl
|
|
File imgFile = new File(localPath);
|
|
File imgFile = new File(localPath);
|
|
try {
|
|
try {
|
|
// 保存文件到本地
|
|
// 保存文件到本地
|
|
- file.transferTo(imgFile);
|
|
|
|
-
|
|
|
|
|
|
+ //file.transferTo(imgFile);
|
|
|
|
+ imgFile.createNewFile(); // 创建文件
|
|
log.info("文件上传成功!文件保存路径:" + localPath);
|
|
log.info("文件上传成功!文件保存路径:" + localPath);
|
|
String result = HttpRequest.post(devConfigApi.getValueByKey("SNOWY_FILE_PATH")).
|
|
String result = HttpRequest.post(devConfigApi.getValueByKey("SNOWY_FILE_PATH")).
|
|
form("groupName", "hnzy").
|
|
form("groupName", "hnzy").
|