Pre Merge pull request !425 from Yancey/default_value_optimization

This commit is contained in:
Yancey 2022-02-10 09:19:16 +00:00 committed by Gitee
commit 8a9c6e993b
2 changed files with 2 additions and 2 deletions

View File

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

View File

@ -100,7 +100,7 @@ public class SysRegisterService
*/
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);
redisCache.deleteObject(verifyKey);
if (captcha == null)