This commit is contained in:
邹宗楠
2022-12-12 19:11:57 +08:00
parent 305ef70150
commit 8b26b22ddb
2 changed files with 1 additions and 3 deletions

View File

@@ -223,6 +223,7 @@ func (c *BaseScheduler) CreateWaybill(platformVendorID int, order *model.GoodsOr
if c.IsReallyCallPlatformAPI {
// 美团配送订单生成,配送费计算
bill, err = handlerInfo.Handler.CreateWaybill(order, maxDeliveryFee)
globals.SugarLogger.Debugf("====================bill %s", utils.Format4Output(bill, false))
if err != nil {
globals.SugarLogger.Infof("CreateWaybill failed orderID:%s vendorID:%d with error:%v", order.VendorOrderID, platformVendorID, err)
} else {

View File

@@ -362,9 +362,6 @@ func (c *DeliveryHandler) CreateWaybill(order *model.GoodsOrder, maxDeliveryFee
// 通知美团订单,获取返回订单配送费
result, err := api.MtpsAPI.CreateOrderByShop2(billParams)
globals.SugarLogger.Debugf("=========resutl %s", utils.Format4Output(result, false))
globals.SugarLogger.Debugf("=========errr %s", utils.Format4Output(err, false))
globals.SugarLogger.Debugf("=========order %s", utils.Format4Output(order, false))
if err != nil {
return nil, err
}