Skip to content

Commit

Permalink
6.10 沉住气 认真修订
Browse files Browse the repository at this point in the history
  • Loading branch information
zzzzzzzzyt committed Jun 10, 2022
1 parent aa43381 commit f9ed4ee
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ public boolean existUser(String username) {
public boolean verityPasswd(String username, String password) {
Consumer consumer = new Consumer();
consumer.setUsername(username);
consumer.setUsername(password);
consumer.setPassword(password);
return consumerMapper.selectCount(new QueryWrapper<>(consumer)) > 0;
}

Expand Down Expand Up @@ -160,7 +160,7 @@ public R loginStatus(ConsumerRequest loginRequest, HttpSession session) {
session.setAttribute("username", username);
Consumer consumer = new Consumer();
consumer.setUsername(username);
return R.success("登录成功", consumerMapper.selectOne(new QueryWrapper<>(consumer)));
return R.success("登录成功", consumerMapper.selectList(new QueryWrapper<>(consumer)));
} else {
return R.error("用户名或密码错误");
}
Expand Down

0 comments on commit f9ed4ee

Please sign in to comment.