From 2716487d13f3521adeb25a48aa07a89f885d32c7 Mon Sep 17 00:00:00 2001 From: liujiandao <274878379@qq.com> Date: 星期一, 09 十月 2023 09:36:08 +0800 Subject: [PATCH] 仓库功能修改 --- controllers/location_product.go | 10 +++++----- 1 files changed, 5 insertions(+), 5 deletions(-) diff --git a/controllers/location_product.go b/controllers/location_product.go index f7a1dc6..3ebb6ef 100644 --- a/controllers/location_product.go +++ b/controllers/location_product.go @@ -44,10 +44,10 @@ util.ResponseFormat(c, code.RequestParamError, "璇烽�夋嫨浜у搧") return } - if params.ProductCategoryID == 0 { - util.ResponseFormat(c, code.RequestParamError, "璇烽�夋嫨浜у搧绫诲埆") - return - } + //if params.ProductCategoryID == 0 { + // util.ResponseFormat(c, code.RequestParamError, "璇烽�夋嫨浜у搧绫诲埆") + // return + //} if err := models.NewLocationProductSearch().Create(¶ms); err != nil { logx.Errorf("Operation create err: %v", err) util.ResponseFormat(c, code.SaveFail, "娣诲姞澶辫触锛�"+err.Error()) @@ -69,7 +69,7 @@ util.ResponseFormat(c, code.RequestParamError, "鍙傛暟瑙f瀽澶辫触锛屾暟鎹被鍨嬮敊璇�:"+err.Error()) return } - if params.Check() { + if !params.Check() { util.ResponseFormat(c, code.RequestParamError, "鍙傛暟寮傚父") return } -- Gitblit v1.8.0