From f0376f72170c2eb236bec5560b8c5734edd222f1 Mon Sep 17 00:00:00 2001 From: kaiyu <404897439@qq.com> Date: Wed, 31 Mar 2021 17:16:40 +0800 Subject: [PATCH] common模块: 增加了convert工具类,驼峰和下划线相互转换 更新了Date工具类,添加根据Date,day获取目标date的方法 更新WebUtils工具类,添加获取请求Ip方法 manage模块: 组织和后台用户增删改查模块全部完成 增加aop用作日志插入 --- screen-common/src/main/java/com/moral/pojo/VerificationCode.java | 15 ++++++++++++++- 1 files changed, 14 insertions(+), 1 deletions(-) diff --git a/screen-common/src/main/java/com/moral/pojo/VerificationCode.java b/screen-common/src/main/java/com/moral/pojo/VerificationCode.java index f524a9f..03a2210 100644 --- a/screen-common/src/main/java/com/moral/pojo/VerificationCode.java +++ b/screen-common/src/main/java/com/moral/pojo/VerificationCode.java @@ -1,6 +1,7 @@ package com.moral.pojo; import lombok.Data; +import org.springframework.util.ObjectUtils; /** * @ClassName VerificationCode @@ -14,5 +15,17 @@ private String key; - private String value; + private String encode; + + private String inputText; + + public boolean valid(){ + if ( + ObjectUtils.isEmpty(key) || + ObjectUtils.isEmpty(inputText) || + inputText.length()!=4 + ) + return false; + return true; + } } -- Gitblit v1.8.0