From a05fe97eb85727cae03dcb03764cf9ab48840b47 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=A2=A8=E5=A4=A7=E5=8F=94?= <494979559@qq.com> Date: Mon, 22 Jul 2024 10:23:48 +0800 Subject: [PATCH] =?UTF-8?q?=E7=99=BB=E5=BD=95bug=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../com/ruoyi/web/controller/app/AppAuthController.java | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/smart-switch-web/src/main/java/com/ruoyi/web/controller/app/AppAuthController.java b/smart-switch-web/src/main/java/com/ruoyi/web/controller/app/AppAuthController.java index 1780b712..ddf763d8 100644 --- a/smart-switch-web/src/main/java/com/ruoyi/web/controller/app/AppAuthController.java +++ b/smart-switch-web/src/main/java/com/ruoyi/web/controller/app/AppAuthController.java @@ -31,16 +31,10 @@ public class AppAuthController extends BaseController { @Autowired private SysLoginService loginService; - @Value("${debug}") - private Boolean debug; - @Deprecated - @ApiOperation("前台用户账号密码登录(临时测试接口)") + @ApiOperation("前台用户账号密码登录") @PostMapping("/login") public AjaxResult login(@RequestBody LoginBody body) { - if (!this.debug) { - return AjaxResult.error("该接口不允许访问"); - } AjaxResult ajax = AjaxResult.success(); // 生成令牌 String token = loginService.appLogin(body.getUsername(), body.getPassword());