xiaoyong931011
2022-10-29 e6f6094a3b1173954cd9979e637a6f1b3bafaf0b
src/main/java/cc/mrbird/febs/dapp/service/impl/DappWalletServiceImpl.java
@@ -698,8 +698,12 @@
            }
        }
        //(2)每24小时只能提现一次
        // 提现次数
        DataDictionaryCustom withdrawOutTimesDic = dataDictionaryCustomMapper.selectDicDataByTypeAndCode(DataDictionaryEnum.OUT_ACCOUNT_PROFIT.getType(), DataDictionaryEnum.OUT_ACCOUNT_PROFIT.getCode());
        String withdrawOutTimesStr = withdrawOutTimesDic.getValue() == null ? "1" : withdrawOutTimesDic.getValue();
        int withdrawOutTimes = Integer.parseInt(withdrawOutTimesStr);
        Integer withdrawTimesReal = memberCoinWithdrawDao.selectByMemberIdAndCreateTime(memberId,DateUtil.format(DateUtil.date(),"yyyy-MM-dd"));
        if(1 > withdrawTimesReal){
        if(withdrawOutTimes < withdrawTimesReal){
            return new FebsResponse().fail().message(MessageSourceUtils.getString("member_err_0014"));
        }