1
This commit is contained in:
@@ -800,9 +800,7 @@ func CreateActForMtByOrder(ctx *jxcontext.Context, act *model.Act, vendorIDs []i
|
|||||||
}
|
}
|
||||||
actIdResult := make(map[string]int64, 0)
|
actIdResult := make(map[string]int64, 0)
|
||||||
mtApi := mtwm.GetAPI(vendorOrgCode, storeID, storeDetail.VendorStoreID)
|
mtApi := mtwm.GetAPI(vendorOrgCode, storeID, storeDetail.VendorStoreID)
|
||||||
actResult, fileInfoList, err6 := mtApi.RetailDiscountBatchSave2(storeDetail.VendorStoreID, actType, actData)
|
actResult, fileInfoList, _ := mtApi.RetailDiscountBatchSave2(storeDetail.VendorStoreID, actType, actData)
|
||||||
globals.SugarLogger.Debugf("-----------actResult : %s", utils.Format4Output(actResult, false))
|
|
||||||
globals.SugarLogger.Debugf("-----------err6 : %v,%d", err6, actType)
|
|
||||||
for _, v := range actResult {
|
for _, v := range actResult {
|
||||||
var (
|
var (
|
||||||
actStoreSkuMapUpdate *model.ActStoreSkuMap
|
actStoreSkuMapUpdate *model.ActStoreSkuMap
|
||||||
@@ -834,10 +832,7 @@ func CreateActForMtByOrder(ctx *jxcontext.Context, act *model.Act, vendorIDs []i
|
|||||||
actData2[i-1].Sequence = i
|
actData2[i-1].Sequence = i
|
||||||
actData2[i-1].OrderLimit = 1
|
actData2[i-1].OrderLimit = 1
|
||||||
}
|
}
|
||||||
a, b, c := mtApi.RetailDiscountBatchSave2(storeDetail.VendorStoreID, actType, actData2)
|
mtApi.RetailDiscountBatchSave2(storeDetail.VendorStoreID, actType, actData2)
|
||||||
globals.SugarLogger.Debugf("-----------a : %s", utils.Format4Output(a, false))
|
|
||||||
globals.SugarLogger.Debugf("-----------b : %s", utils.Format4Output(b, false))
|
|
||||||
globals.SugarLogger.Debugf("-----------c : %v", c)
|
|
||||||
}
|
}
|
||||||
for _, v := range fileInfoList {
|
for _, v := range fileInfoList {
|
||||||
err2 += fmt.Sprintf("创建失败!门店ID:[%v],商品ID:[%v],原因:[%v]", storeID, v.AppFoodCode, v.ErrorMsg)
|
err2 += fmt.Sprintf("创建失败!门店ID:[%v],商品ID:[%v],原因:[%v]", storeID, v.AppFoodCode, v.ErrorMsg)
|
||||||
|
|||||||
Reference in New Issue
Block a user