KKSU
2024-08-29 b6be66a34281cc6a72d544a92244bcc876a2c773
src/main/java/cc/mrbird/febs/mall/service/impl/ApiMallMemberServiceImpl.java
@@ -374,6 +374,12 @@
                DataDictionaryEnum.COIN_CHANGE.getCode()
        );
        mallMemberVo.setChangeType(Integer.parseInt(StrUtil.isEmpty(coinChangeDic.getValue()) ? "1" : coinChangeDic.getValue()));
        DataDictionaryCustom coinInsideChangeDic = dataDictionaryCustomMapper.selectDicDataByTypeAndCode(
                DataDictionaryEnum.COIN_INSIDE_CHANGE.getType(),
                DataDictionaryEnum.COIN_INSIDE_CHANGE.getCode()
        );
        mallMemberVo.setAroundCoinType(Integer.parseInt(StrUtil.isEmpty(coinInsideChangeDic.getValue()) ? "1" : coinInsideChangeDic.getValue()));
        return new FebsResponse().success().data(mallMemberVo);
    }
@@ -555,6 +561,22 @@
        if(1 != type && 2 != type && 3 != type){
            throw new FebsException("请选择互转类型");
        }
        if(1 == type){
            DataDictionaryCustom coinChangeDic = dataDictionaryCustomMapper.selectDicDataByTypeAndCode(
                    DataDictionaryEnum.COIN_INSIDE_CHANGE.getType(),
                    DataDictionaryEnum.COIN_INSIDE_CHANGE.getCode());
            if(!"1".equals(coinChangeDic.getValue())){
                throw new FebsException("暂未开放");
            }
        }
        if(3 == type){
            DataDictionaryCustom coinChangeDic = dataDictionaryCustomMapper.selectDicDataByTypeAndCode(
                    DataDictionaryEnum.CARD_CHANGE.getType(),
                    DataDictionaryEnum.CARD_CHANGE.getCode());
            if(!"1".equals(coinChangeDic.getValue())){
                throw new FebsException("暂未开放");
            }
        }
        Integer insideWith = loginMember.getInsideWith() == null ? 2 :loginMember.getInsideWith();
        if (1 != insideWith) {
            throw new FebsException("功能升级中");