[关闭]
@ruoli 2019-01-02T14:14:00.000000Z 字数 4777 阅读 1500

BTK - 环境信息

标题

工作记录

PwGame 用户名

admin 4297f44b13955235245b2497399d7a93
18588884425 e10adc3949ba59abbe56e057f20f883e

Git常见命令

代码技巧

1、快速构建带初始值的Map、List

  1. List<String> sList = Arrays.asList("str1", "str2");//这种方法生成的list,是不支持添加或删除元素的
  2. Map<Integer, String> newsEventMap = new HashMap<Integer, String>(){{
  3. put("k1","v1");
  4. put("k2","v2");
  5. }};
  6. ImmutableMap<String,BigDecimal> dataBase=ImmutableMap.of("quotes",quotes);
  7. Map转为Bean
  8. public static void main(String[] args) throws IllegalAccessException, InvocationTargetException {
  9. TRetailUser user_parameter=new TRetailUser();
  10. Map<String,String> map= new HashMap<String, String>(){{
  11. put("userAccount","v1");
  12. put("remark","v2");
  13. }};
  14. //import org.apache.commons.beanutils.BeanUtils;
  15. BeanUtils.populate(user_parameter, map);
  16. System.out.println(user_parameter.getUserAccount());
  17. System.out.println(user_parameter.getRemark());
  18. }

下单交易

ws://172.16.1.68:9002/websocket

  1. [{
  2. "fid": 0,
  3. "terminalType": "2",
  4. "fcount": 0,
  5. "wtid": 264,
  6. "fcreateTime": 1530617718095,
  7. "version": 1,
  8. "fstatus": 1,
  9. "cmd": "fentrust_m2t",
  10. "fhasSubscription": 0,
  11. "userId": 166,
  12. "fprize": 0,
  13. "fisSell": 0,
  14. "ftrademappingId": 13,
  15. "fisMarket": 1,
  16. "famount": 1.0
  17. }]

Git SSH-Key 生成:

  1. git config --global user.name "ruoli"
  2. git config --global user.email "mytcc@vip.qq.com"
  3. ssh-keygen -t rsa -C "mytcc@vip.qq.com"
  4. yes

Svn账号配置:
APP需求原型:svn://172.16.1.250/btk/APP
账号密码:ruoli ruoli@666

GitLib系统地址:http://192.168.1.128/dashboard/projects
账号密码:mytcc@vip.qq.com Ruoli1004
Jira地址:http://jira.btktrade.com/secure/Dashboard.jspa
账号密码:Ruoli Ruoli1004
Mysql测试环境IP:172.16.1.122:4006
testbtk / Btk#20180506

WiFi密码:
btk/btk201888
BTK/Btk@123456

  1. //交易大区限额判断
  2. if(org.apache.commons.lang3.StringUtils.equals(fTradeArea, "common")){
  3. //普通区
  4. if(fcurrency.equals("USDT")){
  5. if(new BigDecimal( fmintransamount ).compareTo( new BigDecimal( 15000 ) ) >= 0){
  6. return new CommonResponseDto<String>( ErrorCodeConst.UNKNOWN_ERROR, "普通区最小限额不能大于15000USD" );
  7. }
  8. }else if(fcurrency.equals("CNY")){
  9. if(new BigDecimal( fmintransamount ).compareTo( new BigDecimal( 100000 ) ) >= 0){
  10. return new CommonResponseDto<String>( ErrorCodeConst.UNKNOWN_ERROR, "普通区最小限额不能大于100000CNY" );
  11. }
  12. }
  13. }else if(org.apache.commons.lang3.StringUtils.equals(fTradeArea, "bulk")){
  14. //大宗交易区
  15. //只有商家等级达到1颗钻石后,才可发布大宗交易区的广告
  16. C2CUserInfoDTO userInfoDto=userInfoService.selectByUserId(fuser.getFid());
  17. if(userInfoDto.getRankType()!=2){
  18. return new CommonResponseDto<String>( ErrorCodeConst.UNKNOWN_ERROR, "大宗交易区仅限钻石以上用户" );
  19. }
  20. if(fcurrency.equals("USDT")){
  21. if(new BigDecimal( fmintransamount ).compareTo( new BigDecimal( 15000 ) ) < 0){
  22. return new CommonResponseDto<String>( ErrorCodeConst.UNKNOWN_ERROR, "大宗交易区最小限额不能小于15000USD" );
  23. }
  24. }else if(fcurrency.equals("CNY")){
  25. if(new BigDecimal( fmintransamount ).compareTo( new BigDecimal( 100000 ) ) < 0){
  26. return new CommonResponseDto<String>( ErrorCodeConst.UNKNOWN_ERROR, "大宗交易区最小限额不能小于100000CNY" );
  27. }
  28. }
  29. }else{
  30. return new CommonResponseDto<String>( ErrorCodeConst.UNKNOWN_ERROR, "交易大区错误" );
  31. }

商户后台地址:
http://172.16.1.80/#/ ---测试商户后台
http://172.16.1.81/#/ ---测试管理后台
http://ufx.btktrade.com/#/ ---UAT商户后台
http://ufxadmin.btktrade.com/#/ ---UAT管理后台
http://fx.btktrade.com/#/ ---生产T商户后台
http://fxadmin.btktrade.com/#/ ---生产管理后台
http://172.16.1.52/#/trade ---操盘端

Fuser fuser = this.frontUserService.findById(fuser1.getFid()) ;

test1 环境 web日志查看:
tail -f /opt/tomcat/logs/catalina.out

  1. 启动本地 配置中心
  2. docker run --rm -p 81:8080 -v /app/data/tomcat/webapps/:/usr/local/tomcat/webapps/ -it tomcat:8.5.34-jre8-alpine
  3. 启动本地 Reids
  4. docker run --rm -p 6379:6379 --name redis -it redis:4.0.11
  5. docker run --rm -p 6379:6379 -v /app/data/redis/redis.conf:/usr/local/etc/redis/redis.conf --name redis -it redis:4.0.11
  6. redis-server /usr/local/redis_cluster/7001/redis.conf
  7. redis-server /usr/local/redis_cluster/7002/redis.conf
  8. redis-server /usr/local/redis_cluster/7003/redis.conf
  9. redis-server /usr/local/redis_cluster/7004/redis.conf
  10. redis-server /usr/local/redis_cluster/7005/redis.conf
  11. redis-server /usr/local/redis_cluster/7006/redis.conf
  12. /root/redis/redis-3.2.1/src/redis-trib.rb create --replicas 1 192.168.1.150:7001 192.168.1.150:7002 192.168.1.150:7003 192.168.1.150:7004 192.168.1.150:7005 192.168.1.150:7006

分销后台 http://fhadmin.btktrade.com/#/ Max 0727
商务后台 http://fh.btktrade.com/#/ BTK0001 Aa111111

UAT分销:
分销后台 http://ufxadmin.trming.co/ Max 0727
商务后台 http://ufx.trming.co/ BTK0001 Aa111111

UAT 主系统地址:

生产环境分销管理后台 密码 :Max/BTKmax
生产环境分销商户后台 密码 :BTK0001/ Aa111111

分销后台 Max BTKmax
商务后台 BTK001 Aa111111 http://fhadmin.btktrade.com/#/ http://fh.btktrade.com/#/ @若离 

Redis5-Cluster

  1. /root/software/redis/redis-5.0.0/src/redis-server /root/software/redis/redis-cluster-conf/7001/redis.conf
  2. /root/software/redis/redis-5.0.0/src/redis-cli --cluster create 192.168.2.40:7001 192.168.2.40:7002 192.168.2.40:7003 192.168.2.40:7004 192.168.2.40:7005 192.168.2.40:7006 --cluster-replicas 1

翻墙服务:
ShadowSocks

Geth 同步节点:

  1. geth -datadir "/root/software/eth-blockchain" -syncmode "fast" -rpc -rpcaddr "0.0.0.0" -rpcport "8545" -rpcapi "db,eth,net,web3,miner,personal" -cache 1000 -maxpeers 100
添加新批注
在作者公开此批注前,只有你和作者可见。
回复批注