huwhois 4 年之前
父节点
当前提交
1890e5bfd0
共有 1 个文件被更改,包括 4 次插入0 次删除
  1. 4 0
      src/main/java/io/renren/modules/app/service/impl/SmsCodeServiceImpl.java

+ 4 - 0
src/main/java/io/renren/modules/app/service/impl/SmsCodeServiceImpl.java

62
        //删除验证码
62
        //删除验证码
63
        this.removeById(uuid);
63
        this.removeById(uuid);
64
64
65
        System.out.println(smsCodeEntity.getCode().equalsIgnoreCase(code));
66
        System.out.println(smsCodeEntity.getPhone().equalsIgnoreCase(phone));
67
        System.out.println(smsCodeEntity.getExpireTime().getTime());
68
        System.out.println(System.currentTimeMillis());
65
        if(smsCodeEntity.getCode().equalsIgnoreCase(code) && smsCodeEntity.getPhone().equalsIgnoreCase(phone) && smsCodeEntity.getExpireTime().getTime() >= System.currentTimeMillis()){
69
        if(smsCodeEntity.getCode().equalsIgnoreCase(code) && smsCodeEntity.getPhone().equalsIgnoreCase(phone) && smsCodeEntity.getExpireTime().getTime() >= System.currentTimeMillis()){
66
            return true;
70
            return true;
67
        }
71
        }