From 17fb78903b310564aaeea6e4fd50824f45d4677a Mon Sep 17 00:00:00 2001
From: zainali5120 <512061637@qq.com>
Date: Tue, 13 Oct 2020 15:55:39 +0800
Subject: [PATCH] Merge branches 'cpv' and 'feature/撮合交易' of https://gitee.com/chonggaoxiao/new_excoin into cpv

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

diff --git a/src/main/java/com/xcong/excoin/utils/ThreadPoolUtils.java b/src/main/java/com/xcong/excoin/utils/ThreadPoolUtils.java
index 78727ff..10c1e06 100644
--- a/src/main/java/com/xcong/excoin/utils/ThreadPoolUtils.java
+++ b/src/main/java/com/xcong/excoin/utils/ThreadPoolUtils.java
@@ -2,6 +2,7 @@
 
 import com.xcong.excoin.modules.contract.entity.ContractOrderEntity;
 import com.xcong.excoin.modules.contract.service.impl.OrderWebsocketServiceImpl;
+import com.xcong.excoin.utils.dingtalk.DingTalkUtils;
 
 import java.math.BigDecimal;
 import java.util.concurrent.ExecutorService;
@@ -32,4 +33,18 @@
             }
         });
     }
+
+    /**
+     * 发送钉钉消息
+     *
+     * @param type 类型
+     */
+    public static void sendDingTalk(int type) {
+        EXECUTOR.execute(new Runnable() {
+            @Override
+            public void run() {
+                DingTalkUtils.sendActionCard(type);
+            }
+        });
+    }
 }

--
Gitblit v1.9.1