@@ -253,7 +253,7 @@ public class UserInfoServiceImpl implements UserInfoService{
public boolean check(String userCode) {
UserInfo userInfo = userInfoRepository.findByUserCode(userCode);
if (userInfo == null) {
- return false;
+ throw new RuntimeException("账号或密码错误!");
}
return userInfo.getHasManage();