- fk
This commit is contained in:
@@ -540,16 +540,10 @@ func QueryActs(ctx *jxcontext.Context, actID int, offset, pageSize int, keyword
|
||||
|
||||
func GetActStoreSkuInfo(ctx *jxcontext.Context, actID int, vendorIDs []int) (actStoreSkuList []*model.ActStoreSku2, err error) {
|
||||
db := dao.GetDB()
|
||||
actStoreSkuMap, err := dao.GetActStoreSkuVendorInfo(db, actID, vendorIDs, nil, nil)
|
||||
actStoreSkuList, err = dao.GetActStoreSkuVendorList(db, actID, vendorIDs, nil, nil)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
// if len(actStoreSkuMap) == 0 {
|
||||
// return nil, fmt.Errorf("不能找到活动:%d", actID)
|
||||
// }
|
||||
for _, v := range actStoreSkuMap {
|
||||
actStoreSkuList = append(actStoreSkuList, v...)
|
||||
}
|
||||
return actStoreSkuList, err
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user