Commit 424d1189 authored by 若依's avatar 若依 Committed by Gitee

!531 去除生成验证码多余的逻辑判断

Merge pull request !531 from 稚屿/N/A
parents c7c3da20 edefee46
...@@ -45,7 +45,7 @@ public class KaptchaTextCreator extends DefaultTextCreator ...@@ -45,7 +45,7 @@ public class KaptchaTextCreator extends DefaultTextCreator
suChinese.append(CNUMBERS[y]); suChinese.append(CNUMBERS[y]);
} }
} }
else if (randomoperands == 2) else
{ {
if (x >= y) if (x >= y)
{ {
...@@ -62,13 +62,6 @@ public class KaptchaTextCreator extends DefaultTextCreator ...@@ -62,13 +62,6 @@ public class KaptchaTextCreator extends DefaultTextCreator
suChinese.append(CNUMBERS[x]); suChinese.append(CNUMBERS[x]);
} }
} }
else
{
result = x + y;
suChinese.append(CNUMBERS[x]);
suChinese.append("+");
suChinese.append(CNUMBERS[y]);
}
suChinese.append("=?@" + result); suChinese.append("=?@" + result);
return suChinese.toString(); return suChinese.toString();
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment