区块链根据mconfig.bss.app-secret 修改请求路径

This commit is contained in:
yss
2021-09-15 10:58:48 +08:00
parent 476583936d
commit daa3566c43

View File

@ -78,6 +78,13 @@ public class CrypConfigureServiceImpl extends BaseServiceImpl<CrypConfigureMappe
BlockChainLog blockChainLog = new BlockChainLog(); BlockChainLog blockChainLog = new BlockChainLog();
blockChainLog.setId(PropertyUtils.getSnowflakeId()); blockChainLog.setId(PropertyUtils.getSnowflakeId());
//天擎地址 //天擎地址
if(app_secret.equals("1mb6n6635cJkDb3pEQPUFXc2nRJ8RPaS")){
//测试环境
bean.setUrl(bean.getUrl().replace("10.245.34.209:8000","10.124.150.230:8000"));
}else{
//生产环境
bean.setUrl(bean.getUrl().replace("10.245.34.230:8000","10.124.150.209:8000"));
}
blockChainLog.setInterfaceUrl(bean.getUrl()); blockChainLog.setInterfaceUrl(bean.getUrl());
try { try {