From d76ed8abc8f31e210f4e93f173f41bc2861870dd Mon Sep 17 00:00:00 2001
From: xiaoyong931011 <15274802129@163.com>
Date: Tue, 06 Apr 2021 15:37:49 +0800
Subject: [PATCH] 20210406  交易员列表查询

---
 src/main/java/com/xcong/excoin/utils/CoinTypeConvert.java |    8 ++++++++
 1 files changed, 8 insertions(+), 0 deletions(-)

diff --git a/src/main/java/com/xcong/excoin/utils/CoinTypeConvert.java b/src/main/java/com/xcong/excoin/utils/CoinTypeConvert.java
index fc2dc6c..d9babcb 100644
--- a/src/main/java/com/xcong/excoin/utils/CoinTypeConvert.java
+++ b/src/main/java/com/xcong/excoin/utils/CoinTypeConvert.java
@@ -47,4 +47,12 @@
                 return null;
         }
     }
+
+    public static String convertContractTypeToCoin(String symbol) {
+        if (symbol.indexOf("/") > 0) {
+            return symbol.substring(0, symbol.indexOf("/"));
+        } else {
+            return null;
+        }
+    }
 }

--
Gitblit v1.9.1