浏览代码

上传图片权限修改

anderx 7 年之前
父节点
当前提交
217a6daea6
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/main/java/com/goafanti/banners/controller/AdminBannersApiController.java

+ 1 - 1
src/main/java/com/goafanti/banners/controller/AdminBannersApiController.java

@@ -158,7 +158,7 @@ public class AdminBannersApiController extends BaseApiController {
         Result res = new Result();
         AttachmentType attachmentType = AttachmentType.getField(sign);
         if (attachmentType == AttachmentType.BANNERS_PIC) {
-            res.setData(handleFiles(res, "/banners/", false, req, sign, "banners"));
+            res.setData(handleFiles(res, "", false, req, sign, "/banners"));
         } else {
             res.getError().add(buildError(ErrorConstants.PARAM_ERROR, "", "图片标示"));
         }