trading-order-admin/src/main/java/com/yami/trading/api/controller/ApiUploadFileController.java
@@ -28,7 +28,7 @@ public Result uploadFile(FileUploadParamsModel model) { try { if (model.getFile().getSize() / 1000L > 4500) { throw new YamiShopBindException("图片大小不能超过4M"); throw new YamiShopBindException("Image size cannot exceed 4MB"); } String path= awsS3OSSFileService.uploadFile(model.getModuleName(), model.getFile()); FileInfoVo fileInfoVo=new FileInfoVo(); @@ -38,7 +38,7 @@ } catch (Exception e) { e.printStackTrace(); throw new YamiShopBindException("文件上传失败"); throw new YamiShopBindException("File upload failed"); } } }