修改bug 死循环

This commit is contained in:
“wanyongkang”
2021-09-09 18:08:11 +08:00
parent d8dc28c1f0
commit 242ad26132
2 changed files with 8 additions and 8 deletions

View File

@@ -18,17 +18,17 @@
}
var randomPwd = ValidateCodeHelper.MakeNumCode(3).ToLower();
var randomAccount1 = ValidateCodeHelper.MakeCharCode(2).ToLower() + ValidateCodeHelper.MakeNumCode(4).ToLower();
while (m_AccountService.Exist(m => m.Account == randomAccount1))
@* while (m_AccountService.Exist(m => m.Account == randomAccount1))
{
randomAccount1 = ValidateCodeHelper.MakeCharCode(2).ToLower() + ValidateCodeHelper.MakeNumCode(4).ToLower();
}
} *@
var randomAccountMutil = ValidateCodeHelper.MakeCharCode(3).ToLower();
while (m_AccountService.Exist(m => m.Account.StartsWith(randomAccountMutil)))
@* while (m_AccountService.Exist(m => m.Account.StartsWith(randomAccountMutil)))
{
randomAccountMutil = ValidateCodeHelper.MakeCharCode(3).ToLower();
}
} *@
}
<script src="~/js/vue.js"></script>
<script src="http://res.wx.qq.com/open/js/jweixin-1.0.0.js"></script>

View File

@@ -21,16 +21,16 @@
var randomPwd = ValidateCodeHelper.MakeNumCode(3).ToLower();
var randomAccount1 = ValidateCodeHelper.MakeCharCode(2).ToLower() + ValidateCodeHelper.MakeNumCode(4).ToLower();
while (m_AccountService.Exist(m => m.Account == randomAccount1)) {
@* while (m_AccountService.Exist(m => m.Account == randomAccount1)) {
randomAccount1 = ValidateCodeHelper.MakeCharCode(2).ToLower() + ValidateCodeHelper.MakeNumCode(4).ToLower();
}
} *@
var randomAccountMutil = ValidateCodeHelper.MakeCharCode(3).ToLower();
while (m_AccountService.Exist(m =>m.Account.StartsWith(randomAccountMutil)))
@* while (m_AccountService.Exist(m =>m.Account.StartsWith(randomAccountMutil)))
{
randomAccountMutil = ValidateCodeHelper.MakeCharCode(3).ToLower();
}
} *@
}
<script src="~/js/vue.js"></script>
<script type="text/javascript">