From 46755eb8202cc463e234eda1daa0481b8e462293 Mon Sep 17 00:00:00 2001
From: Junjie <540245094@qq.com>
Date: 星期五, 25 七月 2025 14:51:10 +0800
Subject: [PATCH] #

---
 src/main/java/com/zy/asrs/utils/NotifyUtils.java |   10 ++++++++++
 1 files changed, 10 insertions(+), 0 deletions(-)

diff --git a/src/main/java/com/zy/asrs/utils/NotifyUtils.java b/src/main/java/com/zy/asrs/utils/NotifyUtils.java
index ba4e618..0468a0f 100644
--- a/src/main/java/com/zy/asrs/utils/NotifyUtils.java
+++ b/src/main/java/com/zy/asrs/utils/NotifyUtils.java
@@ -69,6 +69,16 @@
     }
 
     private boolean append(String notifyType, Integer device, String taskNo, String superTaskNo, NotifyMsgType msgType, String data) {
+        boolean notifyEnable = true;
+        Config notifyEnableConfig = configService.selectOne(new EntityWrapper<Config>().eq("code", "notifyEnable"));
+        if (notifyEnableConfig != null) {
+            notifyEnable = notifyEnableConfig.getValue().equals("Y");
+        }
+
+        if (!notifyEnable) {
+            return false;
+        }
+
         String key = getKey(notifyType, device);
         if (key == null) {
             return false;

--
Gitblit v1.9.1