From e6b7593ab3157fcc63460639ebd0e7937e7592f2 Mon Sep 17 00:00:00 2001 From: zhangqian <zhangqian@123.com> Date: 星期二, 02 七月 2024 15:31:02 +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