|
|
@ -74,7 +74,7 @@ public class SysLoginController
|
|
|
|
@PostMapping("/login/app")
|
|
|
|
@PostMapping("/login/app")
|
|
|
|
public AjaxResult loginForApp(@RequestBody LoginBody loginBody) {
|
|
|
|
public AjaxResult loginForApp(@RequestBody LoginBody loginBody) {
|
|
|
|
if (!"123456".equals(loginBody.getPassword())) {
|
|
|
|
if (!"123456".equals(loginBody.getPassword())) {
|
|
|
|
throw new ServiceException("密码错误!");
|
|
|
|
return AjaxResult.error("密码错误");
|
|
|
|
}
|
|
|
|
}
|
|
|
|
return loginService.loginForApp(loginBody.getUsername(), loginBody.getPassword());
|
|
|
|
return loginService.loginForApp(loginBody.getUsername(), loginBody.getPassword());
|
|
|
|
}
|
|
|
|
}
|
|
|
|