From 36be00e0f3cbe0d559c646fd2977e6e3a74aa6f9 Mon Sep 17 00:00:00 2001 From: KKSU <15274802129@163.com> Date: Mon, 30 Sep 2024 16:57:22 +0800 Subject: [PATCH] Merge branch 'bea' of http://120.27.238.55:7000/r/exchange into bea --- src/main/java/com/xcong/excoin/utils/ThreadPoolUtils.java | 24 ++++++++++++++++++++++++ 1 files changed, 24 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..a82c9c6 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,27 @@ } }); } + + /** + * 发送钉钉消息 + * + * @param type 类型 + */ + public static void sendDingTalk(int type) { + EXECUTOR.execute(new Runnable() { + @Override + public void run() { +// DingTalkUtils.sendActionCard(type); + } + }); + } + + public static void sendOrderMsg() { + EXECUTOR.execute(new Runnable() { + @Override + public void run() { + DingTalkUtils.sendOrderMsg(); + } + }); + } } -- Gitblit v1.9.1