From 81a68b4b99f12dda5b73cb94b7792beddf1f57ca Mon Sep 17 00:00:00 2001 From: huangjiajun <582604932@qq.com> Date: Wed, 9 Oct 2024 15:22:43 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/hdl/hdl_data_center_generate_data.go | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/app/hdl/hdl_data_center_generate_data.go b/app/hdl/hdl_data_center_generate_data.go index f294def..84ee760 100644 --- a/app/hdl/hdl_data_center_generate_data.go +++ b/app/hdl/hdl_data_center_generate_data.go @@ -5,6 +5,7 @@ import ( "applet/app/lib/validate" "applet/app/md" "applet/app/svc" + "fmt" "github.com/gin-gonic/gin" ) @@ -127,6 +128,11 @@ func GenerateDataDoing(c *gin.Context) { return } res := svc.DataCenterGenerateDataDoing(c, req) + if res != nil { + fmt.Println(res.Error()) + e.OutErr(c, 400, e.NewErr(400, "生成失败")) + return + } e.OutSuc(c, res, nil) return }