From a21d2184eae304ae80f32353c8a49b64a7618d22 Mon Sep 17 00:00:00 2001 From: jiangshuai <291802688@qq.com> Date: 星期四, 28 九月 2023 11:30:40 +0800 Subject: [PATCH] 1.改名 --- 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