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 }