Browse Source

[feat] 去掉获取图片的token校验

limeng 6 months ago
parent
commit
a00e8c5403

+ 3 - 1
application-webadmin/src/main/java/com/tourism/webadmin/back/controller/BannerInfoController.java

@@ -1,6 +1,7 @@
 package com.tourism.webadmin.back.controller;
 
 import cn.dev33.satoken.annotation.SaCheckPermission;
+import cn.dev33.satoken.annotation.SaIgnore;
 import cn.hutool.core.util.ReflectUtil;
 import com.tourism.common.core.upload.BaseUpDownloader;
 import com.tourism.common.core.upload.UpDownloaderFactory;
@@ -273,7 +274,8 @@ public class BannerInfoController {
      * @param asImage   下载文件是否为图片。
      * @param response  Http 应答对象。
      */
-    @SaCheckPermission("bannerInfo.view")
+//    @SaCheckPermission("bannerInfo.view")
+    @SaIgnore
     @OperationLog(type = SysOperationLogType.DOWNLOAD, saveResponse = false)
     @GetMapping("/download")
     public void download(