controllers/operation.go
@@ -115,9 +115,9 @@ if v.ProductId == "" { return errors.New("productID为空") } if v.ProductName == "" { return errors.New("产品名称异常") } //if v.ProductName == "" { // return errors.New("产品名称异常") //} if v.Amount.IsNegative() { return errors.New("产品数量出错") }