zainali5120
2020-10-17 53bc6ea0abbeb39146502a40292e6562c5a736d7
src/main/java/com/xcong/excoin/modules/blackchain/service/Impl/BlockSeriveImpl.java
@@ -5,18 +5,14 @@
import javax.annotation.Resource;
import com.xcong.excoin.modules.blackchain.service.*;
import com.xcong.excoin.rabbit.producer.UsdtUpdateProducer;
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;
@@ -34,6 +30,9 @@
    MemberDao memberDao;
    @Resource
    MemberCoinAddressDao memberMapper;
    @Resource
    private UsdtUpdateProducer usdtUpdateProducer;
    @Override
    public Result findBlockAddress(String symbol) {
@@ -105,9 +104,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;
@@ -185,8 +182,14 @@
                                coinAddress.setLabel(uuid);
                                memberMapper.insert(coinAddress);
                            }
                           // 发送新增的地址到监听集合
                            usdtUpdateProducer.sendAddressMsg(address);
                        }
                        break;
                    case "ROC":
                        address = RocService.createWallet();
                        map.put("address", address);
                        break;
                    default:
                        break;
                }