From d81d1a1946a2e9d0116620e56b08a65bac75bdea Mon Sep 17 00:00:00 2001 From: jh_peng Date: Wed, 16 Oct 2024 18:15:00 +0800 Subject: [PATCH] =?UTF-8?q?V0=20=E6=B5=8B=E8=AF=95=E6=96=87=E4=BB=B6?= =?UTF-8?q?=E6=89=8B=E5=8A=A8=E5=AF=BC=E5=85=A5=E5=AD=97=E6=AE=B5=E5=88=A4?= =?UTF-8?q?=E6=96=AD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- api/test.data/upload.go | 16 ++++++---------- 1 file changed, 6 insertions(+), 10 deletions(-) diff --git a/api/test.data/upload.go b/api/test.data/upload.go index e11fe74..dd9c7cc 100644 --- a/api/test.data/upload.go +++ b/api/test.data/upload.go @@ -43,22 +43,22 @@ func (D *UploadService) UploadAnswerFile(c *gin.Context) { files = append(files, v...) } if len(form.Value["pbi"]) < 1 { - response.FailWithMessage("缺少PBI名称", c) + response.FailWithMessage("请输入PBI信息", c) return } pbi := form.Value["pbi"][0] if len(form.Value["product"]) < 1 { - response.FailWithMessage("缺少产品名称", c) + response.FailWithMessage("请输入产品信息", c) return } productName := form.Value["product"][0] if len(form.Value["lot"]) < 1 { - response.FailWithMessage("缺少批次", c) + response.FailWithMessage("请输入批次信息", c) return } lot := form.Value["lot"][0] if len(form.Value["factory"]) < 1 { - response.FailWithMessage("缺少厂商", c) + response.FailWithMessage("请选择测试厂信息", c) return } factory := form.Value["factory"][0] @@ -68,10 +68,6 @@ func (D *UploadService) UploadAnswerFile(c *gin.Context) { } else { subBatch = form.Value["sub_batch"][0] } - if len(form.Value["step"]) < 1 { - response.FailWithMessage("缺少工序", c) - return - } var waferID string if len(form.Value["wafer_id"]) < 1 { waferID = "" @@ -84,12 +80,12 @@ func (D *UploadService) UploadAnswerFile(c *gin.Context) { } step := form.Value["step"][0] if len(form.Value["test_machine"]) < 1 { - response.FailWithMessage("缺少机台类型", c) + response.FailWithMessage("请选择机台类型", c) return } machine := form.Value["test_machine"][0] if (lot == "" && subBatch == "") || productName == "" || step == "" || machine == "" { - response.FailWithMessage("信息不全", c) + response.FailWithMessage("必要信息不全", c) return } fileTexts := make([]*model.FileText, 0)