public class CaptchaUtil extends Object
| Constructor and Description |
|---|
CaptchaUtil() |
| Modifier and Type | Method and Description |
|---|---|
static long |
getTTLFormCacheName(String cacheName)
从 cache name 中解析 ttl,例如: user:test#300ms,不带单位默认为 s 秒
|
static Color |
randColor(Random random,
int fc,
int bc)
给定范围获得随机颜色
|
static int |
randNum(Random random,
int min,
int max)
生成指定范围的随机数
|
Copyright © 2024. All rights reserved.