Skip to content

Commit

Permalink
fix: 解决condition is always false
Browse files Browse the repository at this point in the history
Condition 'count == 10' is always 'false'
  • Loading branch information
andy-kong-cloud committed Apr 10, 2024
1 parent b68bff9 commit 3c93dfa
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ public void login(String qrPath) {
return;
}
while (true) {
for (int count = 0; count < 10; count++) {
for (int count = 0; count <= 10; count++) {
LOG.info("获取UUID");
while (loginService.getUuid() == null) {
LOG.info("1. 获取微信UUID");
Expand Down Expand Up @@ -85,4 +85,4 @@ public void login(String qrPath) {
LOG.info("12.开启微信状态检测线程");
new Thread(new CheckLoginStatusThread()).start();
}
}
}

0 comments on commit 3c93dfa

Please sign in to comment.