From f4508a84236a4aff1c7b5bfa17a14a8ff95728ba Mon Sep 17 00:00:00 2001
From: yinbentan <yinbentan@live.com>
Date: 星期一, 08 七月 2024 09:45:10 +0800
Subject: [PATCH] 接口调用报错处理

---
 controllers/system_config.go |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)

diff --git a/controllers/system_config.go b/controllers/system_config.go
index 60b2523..7c73191 100644
--- a/controllers/system_config.go
+++ b/controllers/system_config.go
@@ -9,6 +9,7 @@
 	"wms/pkg/structx"
 	"wms/request"
 	"wms/service"
+	"wms/task"
 )
 
 type SystemConfigController struct{}
@@ -54,6 +55,11 @@
 		}
 	}
 
+	if err := task.RestartDynamicTask(); err != nil {
+		util.ResponseFormat(c, code.SaveFail, "閲嶅惎瀹氭椂浠诲姟澶辫触")
+		return
+	}
+
 	util.ResponseFormat(c, code.Success, "淇濆瓨鎴愬姛")
 }
 

--
Gitblit v1.8.0