Browse Source

更新

master
huangjiajun 1 month ago
parent
commit
81a68b4b99
1 changed files with 6 additions and 0 deletions
  1. +6
    -0
      app/hdl/hdl_data_center_generate_data.go

+ 6
- 0
app/hdl/hdl_data_center_generate_data.go View File

@@ -5,6 +5,7 @@ import (
"applet/app/lib/validate" "applet/app/lib/validate"
"applet/app/md" "applet/app/md"
"applet/app/svc" "applet/app/svc"
"fmt"
"github.com/gin-gonic/gin" "github.com/gin-gonic/gin"
) )


@@ -127,6 +128,11 @@ func GenerateDataDoing(c *gin.Context) {
return return
} }
res := svc.DataCenterGenerateDataDoing(c, req) 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) e.OutSuc(c, res, nil)
return return
} }


Loading…
Cancel
Save