xiaoyong931011
2021-03-04 a7ee66c023bf37798e87c4c801a9c99cfbc97f90
src/main/java/com/xcong/excoin/common/system/service/impl/CommonServiceImpl.java
@@ -26,12 +26,15 @@
    @Override
    public boolean verifyCode(String account, String code) {
        String cacheCode = redisUtils.getString(AppContants.VERIFY_CODE_PREFIX + account);
        log.info("---->{}", cacheCode);
        if (StrUtil.isBlank(cacheCode)) {
            return false;
        }
        return code.equals(cacheCode);
        if (code.equals(cacheCode)) {
            redisUtils.del(AppContants.VERIFY_CODE_PREFIX + account);
            return true;
        } else {
            return false;
        }
    }
    @Override