| | |
| | |
|
| | | 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;
|
| | |
| | | MemberDao memberDao;
|
| | | @Resource
|
| | | MemberCoinAddressDao memberMapper;
|
| | |
|
| | | @Resource
|
| | | private UsdtUpdateProducer usdtUpdateProducer;
|
| | |
|
| | | @Override
|
| | | public Result findBlockAddress(String symbol) {
|
| | |
| | | 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;
|
| | |
| | | coinAddress.setLabel(uuid);
|
| | | memberMapper.insert(coinAddress);
|
| | | }
|
| | | // 发送新增的地址到监听集合
|
| | | usdtUpdateProducer.sendAddressMsg(address);
|
| | | }
|
| | | break;
|
| | | case "ROC":
|
| | | address = RocService.createWallet();
|
| | | map.put("address", address);
|
| | | break;
|
| | | default:
|
| | | break;
|
| | | }
|