| | |
| | | // 扫块区块 |
| | | Object trc20BlockNum = redisUtils.get("USDT_TRC20_BLOCK_NUM"); |
| | | if(trc20BlockNum==null){ |
| | | trc20BlockNum = 27805917L; |
| | | trc20BlockNum = 28095275L; |
| | | |
| | | } |
| | | Long blockNum = Long.valueOf(trc20BlockNum.toString()); |
| | |
| | | // 获取最新区块 |
| | | String string = redisUtils.getString(ETH_USDT_BLOCK_NUM); |
| | | if(string==null){ |
| | | string = "11892420"; |
| | | string = "11957825"; |
| | | } |
| | | BigInteger blockNum = new BigInteger(string); |
| | | Credentials credentials = Credentials.create(privateKey); |
| | |
| | | private FollowTraderProfitInfoDao followTraderProfitInfoDao; |
| | | |
| | | //@Scheduled(cron = "0 0/30 * * * ? ") |
| | | @Scheduled(cron = "0 0/5 * * * ? *") |
| | | @Scheduled(cron = "0 0/5 * * * ?") |
| | | public void traderProfitUpdate() { |
| | | log.info("交易员定时任务执行"); |
| | | // 查询所有交易员信息 |
| | |
| | | profiles: |
| | | active: app |
| | | datasource: |
| | | url: jdbc:mysql://120.27.238.55:3306/db_hibit?useUnicode=true&characterEncoding=utf-8&useSSL=false&serverTimezone=GMT%2b8 |
| | | username: ct_test |
| | | password: 123456 |
| | | url: jdbc:mysql://192.168.0.151:3306/db_hibit?useUnicode=true&characterEncoding=utf-8&useSSL=false&serverTimezone=GMT%2b8 |
| | | username: db_hibit |
| | | password: hibit123!@# |
| | | driver-class-name: com.mysql.jdbc.Driver |
| | | type: com.alibaba.druid.pool.DruidDataSource |
| | | druid: |
| | |
| | | ## redis配置 |
| | | redis: |
| | | ## Redis数据库索引(默认为0) |
| | | database: 1 |
| | | database: 0 |
| | | ## Redis服务器地址 |
| | | host: 114.55.92.106 |
| | | host: 192.168.0.36 |
| | | ## Redis服务器连接端口 |
| | | port: 6379 |
| | | ## Redis服务器连接密码(默认为空) |
| | | password: hibit123 |
| | | password: d32ncxe@i3#!dV |
| | | jedis: |
| | | pool: |
| | | ## 连接池最大连接数(使用负值表示没有限制) |
| | |
| | | ## 连接超时时间(毫秒) |
| | | timeout: 30000 |
| | | rabbitmq: |
| | | host: 120.55.86.146 |
| | | host: 192.168.0.36 |
| | | port: 5672 |
| | | username: biyict |
| | | password: biyict123 |
| | | username: hibit |
| | | password: hibit123 |
| | | publisher-confirm-type: correlated |
| | | |
| | | |
| | |
| | | profiles: |
| | | active: dayline |
| | | datasource: |
| | | url: jdbc:mysql://120.27.238.55:3306/db_hibit?useUnicode=true&characterEncoding=utf-8&useSSL=false&serverTimezone=GMT%2b8 |
| | | username: ct_test |
| | | password: 123456 |
| | | url: jdbc:mysql://192.168.0.151:3306/db_hibit?useUnicode=true&characterEncoding=utf-8&useSSL=false&serverTimezone=GMT%2b8 |
| | | username: db_hibit |
| | | password: hibit123!@# |
| | | driver-class-name: com.mysql.jdbc.Driver |
| | | type: com.alibaba.druid.pool.DruidDataSource |
| | | druid: |
| | |
| | | ## redis配置 |
| | | redis: |
| | | ## Redis数据库索引(默认为0) |
| | | database: 1 |
| | | database: 0 |
| | | ## Redis服务器地址 |
| | | host: 114.55.92.106 |
| | | host: 192.168.0.36 |
| | | ## Redis服务器连接端口 |
| | | port: 6379 |
| | | ## Redis服务器连接密码(默认为空) |
| | | password: hibit123 |
| | | password: d32ncxe@i3#!dV |
| | | jedis: |
| | | pool: |
| | | ## 连接池最大连接数(使用负值表示没有限制) |
| | |
| | | ## 连接超时时间(毫秒) |
| | | timeout: 30000 |
| | | rabbitmq: |
| | | host: 120.55.86.146 |
| | | host: 192.168.0.36 |
| | | port: 5672 |
| | | username: biyict |
| | | password: biyict123 |
| | | username: hibit |
| | | password: hibit123 |
| | | publisher-confirm-type: correlated |
| | | |
| | | |
| | |
| | | profiles: |
| | | active: loop |
| | | datasource: |
| | | url: jdbc:mysql://120.27.238.55:3306/db_hibit?useUnicode=true&characterEncoding=utf-8&useSSL=false&serverTimezone=GMT%2b8 |
| | | username: ct_test |
| | | password: 123456 |
| | | url: jdbc:mysql://192.168.0.151:3306/db_hibit?useUnicode=true&characterEncoding=utf-8&useSSL=false&serverTimezone=GMT%2b8 |
| | | username: db_hibit |
| | | password: hibit123!@# |
| | | driver-class-name: com.mysql.jdbc.Driver |
| | | type: com.alibaba.druid.pool.DruidDataSource |
| | | druid: |
| | |
| | | ## redis配置 |
| | | redis: |
| | | ## Redis数据库索引(默认为0) |
| | | database: 1 |
| | | database: 0 |
| | | ## Redis服务器地址 |
| | | host: 114.55.92.106 |
| | | host: 192.168.0.36 |
| | | ## Redis服务器连接端口 |
| | | port: 6379 |
| | | ## Redis服务器连接密码(默认为空) |
| | | password: hibit123 |
| | | password: d32ncxe@i3#!dV |
| | | jedis: |
| | | pool: |
| | | ## 连接池最大连接数(使用负值表示没有限制) |
| | |
| | | ## 连接超时时间(毫秒) |
| | | timeout: 30000 |
| | | rabbitmq: |
| | | host: 120.55.86.146 |
| | | host: 192.168.0.36 |
| | | port: 5672 |
| | | username: biyict |
| | | password: biyict123 |
| | | username: hibit |
| | | password: hibit123 |
| | | publisher-confirm-type: correlated |
| | | |
| | | |
| | |
| | | profiles: |
| | | active: newprice |
| | | datasource: |
| | | url: jdbc:mysql://120.27.238.55:3306/db_hibit?useUnicode=true&characterEncoding=utf-8&useSSL=false&serverTimezone=GMT%2b8 |
| | | username: ct_test |
| | | password: 123456 |
| | | url: jdbc:mysql://192.168.0.151:3306/db_hibit?useUnicode=true&characterEncoding=utf-8&useSSL=false&serverTimezone=GMT%2b8 |
| | | username: db_hibit |
| | | password: hibit123!@# |
| | | driver-class-name: com.mysql.jdbc.Driver |
| | | type: com.alibaba.druid.pool.DruidDataSource |
| | | druid: |
| | |
| | | ## redis配置 |
| | | redis: |
| | | ## Redis数据库索引(默认为0) |
| | | database: 1 |
| | | database: 0 |
| | | ## Redis服务器地址 |
| | | host: 114.55.92.106 |
| | | host: 192.168.0.36 |
| | | ## Redis服务器连接端口 |
| | | port: 6379 |
| | | ## Redis服务器连接密码(默认为空) |
| | | password: hibit123 |
| | | password: d32ncxe@i3#!dV |
| | | jedis: |
| | | pool: |
| | | ## 连接池最大连接数(使用负值表示没有限制) |
| | |
| | | ## 连接超时时间(毫秒) |
| | | timeout: 30000 |
| | | rabbitmq: |
| | | host: 120.55.86.146 |
| | | host: 192.168.0.36 |
| | | port: 5672 |
| | | username: biyict |
| | | password: biyict123 |
| | | username: hibit |
| | | password: hibit123 |
| | | publisher-confirm-type: correlated |
| | | |
| | | |
| | |
| | | |
| | | spring: |
| | | profiles: |
| | | active: test |
| | | active: dev |
| | | datasource: |
| | | # url: jdbc:mysql://rm-bp151tw8er79ig9kb5o.mysql.rds.aliyuncs.com:3306/db_biue?useUnicode=true&characterEncoding=utf-8&useSSL=false&serverTimezone=GMT%2b8 |
| | | # username: ctcoin_data |
| | | # password: ctcoin_123 |
| | | url: jdbc:mysql://120.27.238.55:3306/db_hibit?useUnicode=true&characterEncoding=utf-8&useSSL=false&serverTimezone=GMT%2b8 |
| | | username: ct_test |
| | | password: 123456 |
| | | url: jdbc:mysql://124.70.222.34:3306/db_hibit?useUnicode=true&characterEncoding=utf-8&useSSL=false&serverTimezone=GMT%2b8 |
| | | username: db_hibit |
| | | password: hibit123!@# |
| | | driver-class-name: com.mysql.jdbc.Driver |
| | | type: com.alibaba.druid.pool.DruidDataSource |
| | | druid: |
| | |
| | | ## redis配置 |
| | | redis: |
| | | ## Redis数据库索引(默认为0) |
| | | database: 1 |
| | | database: 0 |
| | | ## Redis服务器地址 |
| | | host: 120.27.238.55 |
| | | host: 121.37.162.173 |
| | | ## Redis服务器连接端口 |
| | | port: 6379 |
| | | ## Redis服务器连接密码(默认为空) |
| | | password: xcong123 |
| | | password: d32ncxe@i3#!dV |
| | | jedis: |
| | | pool: |
| | | ## 连接池最大连接数(使用负值表示没有限制) |
| | |
| | | ## 连接超时时间(毫秒) |
| | | timeout: 30000 |
| | | rabbitmq: |
| | | host: 120.27.238.55 |
| | | host: 121.37.162.173 |
| | | port: 5672 |
| | | username: ct_rabbit |
| | | password: 123456 |
| | | username: hibit |
| | | password: hibit123 |
| | | publisher-confirm-type: correlated |
| | | |
| | | |
| | |
| | | <configuration> |
| | | <contextName>logback</contextName> |
| | | <!-- name的值是变量的名称,value的值时变量定义的值。通过定义的值会被插入到logger上下文中。定义变量后,可以使“${}”来使用变量。 --> |
| | | <property name="log.path" value="biue/logs" /> |
| | | <property name="log.path" value="hibit/logs" /> |
| | | <!-- <springProperty scope="context" name="log.path" source="logging.file.path"/>--> |
| | | |
| | | <!-- 彩色日志 --> |