!425 优化默认值的问题,Model中不建议有默认值的逻辑

Merge pull request !425 from Yancey/default_value_optimization
master
若依 3 years ago committed by Gitee
commit f5c69bae30
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
  1. 2
      ruoyi-common/src/main/java/com/ruoyi/common/core/domain/model/LoginBody.java
  2. 2
      ruoyi-framework/src/main/java/com/ruoyi/framework/web/service/SysRegisterService.java

@ -25,7 +25,7 @@ public class LoginBody
/** /**
* 唯一标识 * 唯一标识
*/ */
private String uuid = ""; private String uuid;
public String getUsername() public String getUsername()
{ {

@ -100,7 +100,7 @@ public class SysRegisterService
*/ */
public void validateCaptcha(String username, String code, String uuid) public void validateCaptcha(String username, String code, String uuid)
{ {
String verifyKey = Constants.CAPTCHA_CODE_KEY + uuid; String verifyKey = Constants.CAPTCHA_CODE_KEY + StringUtils.nvl(uuid, "");
String captcha = redisCache.getCacheObject(verifyKey); String captcha = redisCache.getCacheObject(verifyKey);
redisCache.deleteObject(verifyKey); redisCache.deleteObject(verifyKey);
if (captcha == null) if (captcha == null)

Loading…
Cancel
Save