检查identity是否存在
$identityExists = true;
while($identityExists){
$identity = md5($userId . time() . Util::generateRandomCode(8));
if ($infoCardDB->verifyIdentity($identity)){
$identityExists = true;
}else{
$identityExists = false;
}
}