非登录用户获取APP版本信息

master
gongzhenkun 2 years ago
parent 40cb427bf4
commit d2f73da63b

@ -803,7 +803,6 @@ public class AppController extends BaseController
* @return {@code AjaxResult} * @return {@code AjaxResult}
*/ */
@ApiOperation("APP查询版本信息") @ApiOperation("APP查询版本信息")
@Log(title = "APP查询版本信息", businessType = BusinessType.OTHER)
@GetMapping("/version/info") @GetMapping("/version/info")
public AjaxResult queryVersionInformation(){ public AjaxResult queryVersionInformation(){
String localPath = RuoYiConfig.getAppInfoPath(); String localPath = RuoYiConfig.getAppInfoPath();

@ -114,6 +114,7 @@ public class SecurityConfig extends WebSecurityConfigurerAdapter
.antMatchers("/druid/**").anonymous() .antMatchers("/druid/**").anonymous()
.antMatchers("/wechat/login/**").anonymous() .antMatchers("/wechat/login/**").anonymous()
.antMatchers("/api/app/hospital/list").anonymous() .antMatchers("/api/app/hospital/list").anonymous()
.antMatchers("/api/app/version/info").anonymous()
.antMatchers("/common/upload").anonymous() .antMatchers("/common/upload").anonymous()
// 除上面外的所有请求全部需要鉴权认证 // 除上面外的所有请求全部需要鉴权认证
.anyRequest().authenticated() .anyRequest().authenticated()

Loading…
Cancel
Save