Skip to content
This repository has been archived by the owner on Feb 11, 2023. It is now read-only.

Commit

Permalink
[+] 记录为已验证
Browse files Browse the repository at this point in the history
  • Loading branch information
hykilpikonna committed Sep 3, 2018
1 parent 1a37ef2 commit 59d7c25
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,12 @@ public String runOsu(EventMessage event, User user, String command, ArrayList<St
if (!qqTimeMap.containsKey(user.getId())) qqTimeMap.put(user.getId(), currentTime);
else if (currentTime - qqTimeMap.get(user.getId()) < 10 * 1000) return null;
if (!userSettings.getVerificationCode().equals(verificationCodeFromUser)) return Messages.invalidVerificationCode();

// 记录为已验证
userSettings.setVerificationState(VerificationStates.VERIFIED);
userSettings.update();

return Messages.success(userSettings);
}

@Override
Expand Down

0 comments on commit 59d7c25

Please sign in to comment.