aa
This commit is contained in:
@@ -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("此接口只支持美团使用!")
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user