feat(config): 切换默认配置为生产环境
- 将 spring.profiles.active 从 test 更改为 app
- 更新 CoinTypeConvert 工具类,增加 okxConvert 方法支持 OKX 交易对格式转换
- 优化交易对符号处理逻辑,统一使用斜杠分隔符
| | |
| | | } |
| | | } |
| | | |
| | | public static String okxConvert(String symbol) { |
| | | //将xxx-USDT转换成xxx/USDT |
| | | if (symbol.contains("-")) { |
| | | symbol = symbol.replace("-", "/"); |
| | | } |
| | | |
| | | return symbol; |
| | | } |
| | | |
| | | public static String convertToKey(String symbol) { |
| | | switch (symbol) { |
| | | case "BTC/USDT": |
| | |
| | | |
| | | spring: |
| | | profiles: |
| | | active: test |
| | | active: app |
| | | 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 |