mirror of
https://codeup.aliyun.com/67c68d4e484ca2f0a13ac3c1/ydc/jsowell-charger-web.git
synced 2026-04-20 02:55:04 +08:00
update 固件上传到FTP服务器
This commit is contained in:
@@ -99,12 +99,8 @@ public class CommonController {
|
||||
// 上传文件路径
|
||||
String filePath = JsowellConfig.getUploadPath();
|
||||
// 上传并返回新文件名称
|
||||
String fileName = FileUploadUtils.upload(filePath, file);
|
||||
try {
|
||||
FtpUtils.upLoad(filePath, file);
|
||||
} catch (Exception e) {
|
||||
log.error("FTP上传固件error", e);
|
||||
}
|
||||
// String fileName = FileUploadUtils.upload(filePath, file);
|
||||
String fileName = FtpUtils.upLoad(filePath, file);
|
||||
String url = serverConfig.getUrl() + fileName;
|
||||
AjaxResult ajax = AjaxResult.success();
|
||||
ajax.put("url", url);
|
||||
|
||||
Reference in New Issue
Block a user