aa
This commit is contained in:
@@ -982,6 +982,20 @@ func DeleteActStoreSkuBind(ctx *jxcontext.Context, db *dao.DaoDB, actID int, act
|
||||
return 0, err
|
||||
}
|
||||
|
||||
//if len(actMap) == 0 {
|
||||
//
|
||||
// return 0, fmt.Errorf("活动%d不存在或已被取消", actID)
|
||||
//}
|
||||
//errList := errlist.New()
|
||||
//for vendorID, act := range actMap {
|
||||
// if vendorID == model.VendorIDEBAI && act.CreateType != model.ActCreateTypeAPI {
|
||||
// errList.AddErr(fmt.Errorf("饿百平台不支持修改或取消网页活动"))
|
||||
// }
|
||||
//}
|
||||
//if errList.GetErrListAsOne() != nil {
|
||||
// return 0, errList.GetErrListAsOne()
|
||||
//}
|
||||
|
||||
actStoreSkuMap, err := dao.GetActStoreSkuVendorInfo(db, actID, nil, nil, nil)
|
||||
if err != nil {
|
||||
return 0, err
|
||||
@@ -2095,3 +2109,7 @@ func GetActMtwmVendor(ctx *jxcontext.Context, storeIDs, skuIDs []int, keyword, b
|
||||
func GetActMtwmVendorSku(ctx *jxcontext.Context, storeID int, keyword string, actType, offset, pageSize int) (page *model.PagedInfo, err error) {
|
||||
return dao.GetActMtwmVendorSkuPage(dao.GetDB(), storeID, keyword, actType, offset, pageSize)
|
||||
}
|
||||
|
||||
func DeleteActStoreSkuVendor(ctx *jxcontext.Context, db *dao.DaoDB, actStoreSkuParam []*ActStoreSkuParam) (err error) {
|
||||
return fmt.Errorf("暂不支持直接取消平台活动,开发中……")
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user