- 修复ActStoreSkuParam2Model中没有一次报wrongSkuList错的bug
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user