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 }