测试环境

This commit is contained in:
haozq 2025-09-12 18:15:34 +08:00
parent 567f0cea59
commit 4418e0d341
3 changed files with 5 additions and 6 deletions

View File

@ -69,7 +69,6 @@ public class ProductController extends BaseController {
* @param product
* @return
*/
@PreAuthorize("@ss.hasPermi('tb:product:details')")
@PostMapping("/getDetails")
public AjaxResult getDetails(@RequestBody TbProduct product ){
return service.getDetails(product) ;

View File

@ -37,12 +37,12 @@ public class LoginUserService {
if (StringUtils.isNull(user))
{
log.info("登录用户:{} 不存在.", username);
throw new ServiceException(MessageUtils.message("登录用户不存在"));
throw new ServiceException("用户名/密码错误");
}
else if (UserStatus.DELETED.getCode().equals(user.getDelFlag()))
{
log.info("登录用户:{} 已被删除.", username);
throw new ServiceException(MessageUtils.message("登录用户已被删除"));
throw new ServiceException("登录用户已被删除");
}
else if (UserStatus.DISABLE.getCode().equals(user.getStatus()))
{

View File

@ -41,17 +41,17 @@ public class UserDetailsServiceImpl implements UserDetailsService
if (StringUtils.isNull(user))
{
log.info("登录用户:{} 不存在.", username);
throw new ServiceException(MessageUtils.message("登录用户不存在"));
throw new ServiceException("用户名/密码错误");
}
else if (UserStatus.DELETED.getCode().equals(user.getDelFlag()))
{
log.info("登录用户:{} 已被删除.", username);
throw new ServiceException(MessageUtils.message("登录用户已被删除"));
throw new ServiceException("登录用户已被删除");
}
else if (UserStatus.DISABLE.getCode().equals(user.getStatus()))
{
log.info("登录用户:{} 已被停用.", username);
throw new ServiceException(MessageUtils.message("登录用户已被删除"));
throw new ServiceException("登录用户已被删除");
}
passwordService.validate(user);