Helius
2020-07-06 1b6270f99e1cfb1649aa5f88e669d0928ad9470d
modify
2 files modified
13 ■■■■ changed files
src/main/java/com/xcong/excoin/modules/blackchain/service/Impl/BlockSeriveImpl.java 4 ●●●● patch | view | raw | blame | history
src/test/java/com/xcong/excoin/KssframeworkApplicationTests.java 9 ●●●●● patch | view | raw | blame | history
src/main/java/com/xcong/excoin/modules/blackchain/service/Impl/BlockSeriveImpl.java
@@ -42,14 +42,14 @@
        if(member==null) {
            return Result.fail(MessageSourceUtils.getString("member_service_0003"));
        }
        String lable = member.getInviteId();
        String lable = "ERC20";
        Result result = new Result();
        try {
        Map<String, String> map = new HashMap<String, String>();
        MemberCoinAddressEntity memberCoinAddress = new MemberCoinAddressEntity();
        
        if("USDT".equals(symbol)) {
            memberCoinAddress = memberMapper.selectBlockAddressWithTag(Long.parseLong(mId), symbol,member.getInviteId());
            memberCoinAddress = memberMapper.selectBlockAddressWithTag(Long.parseLong(mId), symbol, lable);
        }else {
            memberCoinAddress = memberMapper.selectBlockAddress(Long.parseLong(mId), symbol);
        }
src/test/java/com/xcong/excoin/KssframeworkApplicationTests.java
@@ -3,6 +3,7 @@
import com.xcong.excoin.common.enumerates.CoinTypeEnum;
import com.xcong.excoin.common.enumerates.SymbolEnum;
import com.xcong.excoin.configurations.properties.AliOssProperties;
import com.xcong.excoin.modules.coin.service.BlockCoinService;
import com.xcong.excoin.modules.test.dao.TestUserDao;
import com.xcong.excoin.modules.test.entity.TestUserEntity;
import com.xcong.excoin.modules.test.service.TestUserService;
@@ -65,4 +66,12 @@
    }
    @Resource
    private BlockCoinService blockCoinService;
    @Test
    public void usdtEthTest() {
        blockCoinService.updateEthUsdt();
    }
}