mirror of
https://codeup.aliyun.com/67c68d4e484ca2f0a13ac3c1/ydc/jsowell-charger-web.git
synced 2026-04-20 11:05:18 +08:00
uploadFirmware 上传固件接口
This commit is contained in:
@@ -95,7 +95,7 @@ public class CommonController {
|
||||
public AjaxResult uploadFirmware(MultipartFile file) throws Exception {
|
||||
try {
|
||||
// 上传文件路径
|
||||
String filePath = JsowellConfig.getFirmwarePath();
|
||||
String filePath = JsowellConfig.getUploadPath();
|
||||
// 上传并返回新文件名称
|
||||
String fileName = FileUploadUtils.upload(filePath, file);
|
||||
String url = serverConfig.getUrl() + fileName;
|
||||
|
||||
Reference in New Issue
Block a user