This commit is contained in:
wangchuxiao
2022-06-30 19:11:44 +08:00
parent 53b0d13342
commit 7823306045
3 changed files with 4 additions and 4 deletions
+2 -2
View File
@@ -51,9 +51,9 @@ func Verify(c *gin.Context) {
var accountKey string
switch params.UsedFor {
case constant.VerificationCodeForRegister:
accountKey = account + "_" + constant.VerificationCodeForRegisterSuffix
accountKey = params.AreaCode + account + "_" + constant.VerificationCodeForRegisterSuffix
case constant.VerificationCodeForReset:
accountKey = account + "_" + constant.VerificationCodeForResetSuffix
accountKey = params.AreaCode + account + "_" + constant.VerificationCodeForResetSuffix
}
code, err := db.DB.GetAccountCode(accountKey)