huwhois 4 ans auparavant
Parent
commit
f8258a7301

+ 0 - 4
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());
69
        if(smsCodeEntity.getCode().equalsIgnoreCase(code) && smsCodeEntity.getPhone().equalsIgnoreCase(phone) && smsCodeEntity.getExpireTime().getTime() >= System.currentTimeMillis()){
65
        if(smsCodeEntity.getCode().equalsIgnoreCase(code) && smsCodeEntity.getPhone().equalsIgnoreCase(phone) && smsCodeEntity.getExpireTime().getTime() >= System.currentTimeMillis()){
70
            return true;
66
            return true;
71
        }
67
        }