mirror of
https://gitee.com/chinabugotech/hutool.git
synced 2025-05-09 23:51:34 +08:00
GifCaptcha.setRepeat设置无效值,应该保持为 0
This commit is contained in:
parent
416f0f3fa7
commit
987bd783cf
@ -113,9 +113,7 @@ public class GifCaptcha extends AbstractCaptcha {
|
||||
* @return this
|
||||
*/
|
||||
public GifCaptcha setRepeat(int repeat) {
|
||||
if (repeat >= 0) {
|
||||
this.repeat = repeat;
|
||||
}
|
||||
this.repeat = Math.max(repeat, 0);
|
||||
return this;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user