This commit is contained in:
suyl
2021-06-21 09:55:36 +08:00
parent 90a3720de6
commit faa10e4069
2 changed files with 10 additions and 3 deletions

View File

@@ -644,12 +644,17 @@ func CreateAct(ctx *jxcontext.Context, act *model.Act, vendorIDs []int, vendorOr
return hint, err
}
func CreateActForMtByOrder(ctx *jxcontext.Context, act *model.Act, vendorID int, vendorOrgCode string, actStoreSku []*ActStoreSkuParam) (err error) {
func CreateActForMtByOrder(ctx *jxcontext.Context, act *model.Act, vendorIDs []int, vendorOrgCode string, actStoreSku []*ActStoreSkuParam) (err error) {
var (
db = dao.GetDB()
actStoreSkuMap = make(map[int][]*model.StoreSkuBind)
err2 = ""
vendorID int
)
if len(vendorIDs) > 0 {
return fmt.Errorf("只允许单平台创建!")
}
vendorID = vendorIDs[0]
if vendorID != model.VendorIDMTWM {
return fmt.Errorf("此接口只支持美团使用!")
}