Skip to content

Commit

Permalink
什么屎山
Browse files Browse the repository at this point in the history
  • Loading branch information
RedDragon0293 committed Sep 19, 2023
1 parent 8f1863e commit bd231d9
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/main/java/cn/reddragon/eportal/HelloController.java
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,8 @@ protected void onLoginButtonClick() {
button.setText("Logout");
} else if (button.getText().equals("Logout")) {
try {
//经过测试,登出时不需要userIndex也能成功登出
//为了避免不必要的麻烦,仍然传入userIndex
HttpURLConnection connection = Authenticator.logout(Authenticator.userIndex);
if (connection == null) {
resultText.setText("Error!");
Expand Down

0 comments on commit bd231d9

Please sign in to comment.