xiaoyong931011
2022-10-25 f755301cc1bc3899bc100afdd387d7b0dc8863bf
src/main/java/cc/mrbird/febs/dapp/service/impl/DappMemberServiceImpl.java
@@ -28,6 +28,7 @@
import cn.hutool.crypto.SecureUtil;
import cn.hutool.crypto.asymmetric.KeyType;
import cn.hutool.crypto.asymmetric.RSA;
import cn.hutool.json.JSONUtil;
import com.alibaba.fastjson.JSONObject;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
@@ -418,6 +419,8 @@
        member.setPassword(SecureUtil.md5(registerDto.getPassword()));
        member.setIdentity(DataDictionaryEnum.LEVEL_MB.getCode());
        member.setRefererId(registerDto.getRefererId());
        member.setIsOnHook(2);
        member.setIsProfit(1);
        dappMemberDao.insert(member);
        //更新用户信息
@@ -445,6 +448,7 @@
        dappWalletCoinEntity.setAvailableAmount(AppContants.INIT_MONEY);
        dappWalletCoinEntity.setFrozenAmount(AppContants.INIT_MONEY);
        dappWalletCoinEntity.setTotalAmount(AppContants.INIT_MONEY);
        dappWalletCoinEntity.setWalletCode("USDT");
        dappWalletCoinDao.insert(dappWalletCoinEntity);
        return new FebsResponse().success().message(MessageSourceUtils.getString("register_err_006"));
@@ -514,6 +518,8 @@
            dappMemberEntity = new DappMemberEntity();
            dappMemberEntity.setTouristMark(touristMark);
            dappMemberEntity.setIdentity(DataDictionaryEnum.LEVEL_TM.getCode());
            dappMemberEntity.setIsOnHook(2);
            dappMemberEntity.setIsProfit(1);
            dappMemberDao.insert(dappMemberEntity);
            //初始化账户信息
@@ -920,4 +926,6 @@
        RSA rsa = new RSA(null, AppContants.PUBLIC_KEY);
        return rsa.encryptBase64(token + "_" + System.currentTimeMillis(), KeyType.PublicKey);
    }
}