From 03c6572c7918beaa20365e69c9694a11f0d9948a Mon Sep 17 00:00:00 2001 From: hjl <1657978663@qq.com> Date: 星期一, 01 七月 2024 10:13:26 +0800 Subject: [PATCH] feat: 代码初始化 --- ruoyi-common/ruoyi-common-core/src/main/java/com/ruoyi/common/core/constant/Constants.java | 17 ++++++++++++++++- 1 files changed, 16 insertions(+), 1 deletions(-) diff --git a/ruoyi-common/ruoyi-common-core/src/main/java/com/ruoyi/common/core/constant/Constants.java b/ruoyi-common/ruoyi-common-core/src/main/java/com/ruoyi/common/core/constant/Constants.java index 6e9d5af..b087c3c 100644 --- a/ruoyi-common/ruoyi-common-core/src/main/java/com/ruoyi/common/core/constant/Constants.java +++ b/ruoyi-common/ruoyi-common-core/src/main/java/com/ruoyi/common/core/constant/Constants.java @@ -213,6 +213,11 @@ public static final Integer THREE = 3; /** + * 数字4 + */ + public static final Integer FOUR = 4; + + /** * 数字5 */ public static final Integer FIVE = 5; @@ -233,6 +238,11 @@ public static final Integer EIGHT = 18; /** + * 数字100 + */ + public static final Integer ONE_HUNDRED = 100; + + /** * 数字 3000 */ public static final Integer THREE_THOUSAND = 3000; @@ -248,8 +258,13 @@ public static final String DEFAULT_PASSWORD = "123456"; /** + * 三端默认验证码 + */ + public static final String DEFAULT_PHONE_CODE = "123456"; + + /** * 手机号码正则 */ - public static final String PHONE = ("^((13[0-9])|(14[0,1,4-9])|(15[0-3,5-9])|(16[2,5,6,7])|(17[0-8])|(18[0-9])|(19[0-3,5-9]))\\d{8}$"); + public static final String PHONE = "^1[34578]\\d{9}$"; } -- Gitblit v1.7.1