无关风月
2024-11-11 79857a556aa0a983eee05730b0566a62e0be73c0
xinquan-modules/xinquan-user/src/main/java/com/xinquan/user/controller/client/ClientAppUserWithdrawController.java
@@ -301,14 +301,14 @@
        Long userId = loginUser.getUserid();
        appUserWithdraw.setAppUserId(userId);
        Boolean flag = redisService.hasKey(CacheConstants.ADD_CARD_PHONE_CODE_PREFIX + appUserWithdraw.getCellPhone());
        if(!flag){
            return R.fail("验证码已失效,请重新获取");
        }
        String code = redisService.getCacheObject(CacheConstants.ADD_CARD_PHONE_CODE_PREFIX + appUserWithdraw.getCellPhone());
        if (!appUserWithdraw.getCode().equals(code)) {
            return R.fail("验证码不正确");
        }
//        Boolean flag = redisService.hasKey(CacheConstants.ADD_CARD_PHONE_CODE_PREFIX + appUserWithdraw.getCellPhone());
//        if(!flag){
//            return R.fail("验证码已失效,请重新获取");
//        }
//        String code = redisService.getCacheObject(CacheConstants.ADD_CARD_PHONE_CODE_PREFIX + appUserWithdraw.getCellPhone());
//        if (!appUserWithdraw.getCode().equals(code)) {
//            return R.fail("验证码不正确");
//        }
        appUserBankService.save(appUserWithdraw);
        return R.ok();
    }