zainali5120
2020-09-29 f6b431207b7d5d0f87e49f3b379e465734897ccf
src/main/java/com/xcong/excoin/modules/blackchain/service/Impl/BlockSeriveImpl.java
@@ -5,18 +5,13 @@
import javax.annotation.Resource;
import com.xcong.excoin.modules.blackchain.service.*;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;
import com.alibaba.fastjson.JSONObject;
import com.xcong.excoin.common.LoginUserUtils;
import com.xcong.excoin.common.response.Result;
import com.xcong.excoin.modules.blackchain.service.BlockSerive;
import com.xcong.excoin.modules.blackchain.service.BtcService;
import com.xcong.excoin.modules.blackchain.service.EthService;
import com.xcong.excoin.modules.blackchain.service.LtcService;
import com.xcong.excoin.modules.blackchain.service.UsdtService;
import com.xcong.excoin.modules.blackchain.service.XrpService;
import com.xcong.excoin.modules.member.dao.MemberCoinAddressDao;
import com.xcong.excoin.modules.member.dao.MemberDao;
import com.xcong.excoin.modules.member.entity.MemberCoinAddressEntity;
@@ -37,6 +32,7 @@
    @Override
    public Result findBlockAddress(String symbol) {
        System.out.println("币种"+symbol);
        //获取用户ID
        String mId = LoginUserUtils.getAppLoginUser().getId().toString();
        MemberEntity member = memberDao.selectById(mId);
@@ -105,9 +101,7 @@
                        map.put("lable", uuid);
                        break;
                    case "XRP":
                        JSONObject jSONObject = XrpService.createWallet();
                        address = (String) jSONObject.get("xAddress");
                        key = (String) jSONObject.get("secret");
                        address = "biyicteos123";
                        map.put("address", address);
                        map.put("lable", uuid);
                        break;
@@ -187,6 +181,12 @@
                            }
                        }
                        break;
                    case "CPV":
                        address = RocService.createWallet();
                        map.put("address", address);
                        System.out.println("币种"+address);
                        break;
                    default:
                        break;
                }