1
This commit is contained in:
@@ -413,7 +413,6 @@ func (p *PurchaseHandler) createOrUpdateStoreSkus(ctx *jxcontext.Context, storeI
|
||||
availableTimes := fmt.Sprintf("%s-%s", saleStart, saleEnd)
|
||||
available, _ := json.Marshal(map[string]string{"monday": availableTimes, "tuesday": availableTimes, "wednesday": availableTimes, "thursday": availableTimes, "friday": availableTimes, "saturday": availableTimes, "sunday": availableTimes})
|
||||
foodData["available_times"] = string(available)
|
||||
|
||||
}
|
||||
foodData["sequence"] = storeSku.GetSeq()
|
||||
if storeSku.VendorVendorCatID != 0 {
|
||||
@@ -449,6 +448,7 @@ func (p *PurchaseHandler) createOrUpdateStoreSkus(ctx *jxcontext.Context, storeI
|
||||
failedList = putils.GetErrMsg2FailedSingleList(storeSkuList, err, storeID, model.VendorChineseNames[model.VendorIDMTWM], syncType)
|
||||
}
|
||||
} else if len(foodDataList) > 0 {
|
||||
globals.SugarLogger.Debugf("================lenfoodDataList %d", len(foodDataList))
|
||||
failedFoodList, err2 := getAPI(getStoreVendorOrgCode(storeID), storeID, vendorStoreID).RetailBatchInitData(ctx.GetTrackInfo(), vendorStoreID, foodDataList)
|
||||
if err = err2; err == nil {
|
||||
if err = putils.GenPartialFailedErr(failedFoodList, len(failedFoodList)); err != nil {
|
||||
|
||||
Reference in New Issue
Block a user