From 38c84ea8b272bedd429e0031f283cdc83e203c76 Mon Sep 17 00:00:00 2001 From: jinpengyong <jpy123456> Date: Tue, 28 Sep 2021 16:02:08 +0800 Subject: [PATCH] 均值计算上下限修改 --- 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