From d2f73da63b3b6e1ce713912a42347e4a314ce99a Mon Sep 17 00:00:00 2001 From: gongzhenkun <1658878546@qq.com> Date: Fri, 30 Sep 2022 11:43:19 +0800 Subject: [PATCH] =?UTF-8?q?=E9=9D=9E=E7=99=BB=E5=BD=95=E7=94=A8=E6=88=B7?= =?UTF-8?q?=E8=8E=B7=E5=8F=96APP=E7=89=88=E6=9C=AC=E4=BF=A1=E6=81=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../main/java/com/ruoyi/web/controller/api/AppController.java | 1 - .../src/main/java/com/ruoyi/framework/config/SecurityConfig.java | 1 + 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/api/AppController.java b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/api/AppController.java index 562c73a..c97895c 100644 --- a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/api/AppController.java +++ b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/api/AppController.java @@ -803,7 +803,6 @@ public class AppController extends BaseController * @return {@code AjaxResult} */ @ApiOperation("APP查询版本信息") - @Log(title = "APP查询版本信息", businessType = BusinessType.OTHER) @GetMapping("/version/info") public AjaxResult queryVersionInformation(){ String localPath = RuoYiConfig.getAppInfoPath(); diff --git a/ruoyi-framework/src/main/java/com/ruoyi/framework/config/SecurityConfig.java b/ruoyi-framework/src/main/java/com/ruoyi/framework/config/SecurityConfig.java index 45aa5e5..7a79d67 100644 --- a/ruoyi-framework/src/main/java/com/ruoyi/framework/config/SecurityConfig.java +++ b/ruoyi-framework/src/main/java/com/ruoyi/framework/config/SecurityConfig.java @@ -114,6 +114,7 @@ public class SecurityConfig extends WebSecurityConfigurerAdapter .antMatchers("/druid/**").anonymous() .antMatchers("/wechat/login/**").anonymous() .antMatchers("/api/app/hospital/list").anonymous() + .antMatchers("/api/app/version/info").anonymous() .antMatchers("/common/upload").anonymous() // 除上面外的所有请求全部需要鉴权认证 .anyRequest().authenticated()