From 08e224a35e0af40d97ebc2724dd6d5df4ca76a9c Mon Sep 17 00:00:00 2001 From: gazebo Date: Fri, 26 Jul 2019 17:21:46 +0800 Subject: [PATCH] =?UTF-8?q?-=20=E4=BF=AE=E5=A4=8DActStoreSkuParam2Model?= =?UTF-8?q?=E4=B8=AD=E6=B2=A1=E6=9C=89=E4=B8=80=E6=AC=A1=E6=8A=A5wrongSkuL?= =?UTF-8?q?ist=E9=94=99=E7=9A=84bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- business/jxstore/act/act.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/business/jxstore/act/act.go b/business/jxstore/act/act.go index a7d944cf7..ce4d17cd6 100644 --- a/business/jxstore/act/act.go +++ b/business/jxstore/act/act.go @@ -161,9 +161,6 @@ func ActStoreSkuParam2Model(ctx *jxcontext.Context, db *dao.DaoDB, act *model.Ac err = nil } } - if len(wrongSkuList) > 0 { - return nil, nil, nil, jsonerr.New(wrongSkuList, model.ErrCodeJsonActPriceTooLarger) - } for _, v := range oneStoreSkuParam { if validSkuMap[v.SkuID] == 1 { // todo 这里是否需要判断 if storeSkuInfo := storeSkuMap[jxutils.Combine2Int(v.StoreID, v.SkuID)]; storeSkuInfo != nil { @@ -176,6 +173,9 @@ func ActStoreSkuParam2Model(ctx *jxcontext.Context, db *dao.DaoDB, act *model.Ac } } } + if len(wrongSkuList) > 0 { + return nil, nil, nil, jsonerr.New(wrongSkuList, model.ErrCodeJsonActPriceTooLarger) + } } return jxutils.IntMap2List(wholeValidVendorMap), actStoreSkuList, actStoreSkuMapList, err }