生成六位随机数
String rand = String.valueOf(Math.random()).substring(2).substring(0, 6);
// 存入redis【300秒】
private static final int INFECTIVE_SMS_TIME = 300
jedisCluster.set(SMS_REGISTER_PREFIX + userPhone, rand);
jedisCluster.expire(SMS_REGISTER_PREFIX + userPhone, INFECTIVE_SMS_TIME);
content = rand + "有效时间5分钟,您正在注册" + WebsiteUtil.getInstance().getAppConfig(request.getParameter("appName"), "APP_TITLE", jedisCluster) + "账户,如不是本人请忽略。";
/**
* @author by 云澜 on 16/11/7.
*/
public enum RedisEnum {
TEST("test", "this is a test", 60L * 10), //10分钟
PARAMETER_MIDCATEGORY_REPLENISTH_ERRORVO("parameter:midcategory:replennish:errorvo:%s", "中类补货参数错误导出", 60L * 10),
PARAMETER