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