diff --git a/business/jxcallback/orderman/waybill.go b/business/jxcallback/orderman/waybill.go index b655f74c7..246db13c5 100644 --- a/business/jxcallback/orderman/waybill.go +++ b/business/jxcallback/orderman/waybill.go @@ -99,8 +99,12 @@ func (w *OrderManager) OnWaybillStatusChanged(bill *model.Waybill) (err error) { duplicatedCount = 1 } } else { + existingBill, err2 := w.LoadWaybill(bill.VendorWaybillID, bill.WaybillVendorID) + // todo + if err2 == nil { + bill.DeliveryFlag = existingBill.DeliveryFlag + } if bill.Status == model.WaybillStatusAccepted { // 处理美团配送丢失新运单消息的情况 - existingBill, err2 := w.LoadWaybill(bill.VendorWaybillID, bill.WaybillVendorID) if err2 != nil { if dao.IsNoRowsError(err2) || err2 == ErrCanNotFindWaybill { existingBill = bill diff --git a/business/jxstore/cms/authz.go b/business/jxstore/cms/authz.go index 487065ba5..a047328f6 100644 --- a/business/jxstore/cms/authz.go +++ b/business/jxstore/cms/authz.go @@ -15,6 +15,7 @@ import ( // todo 是否需要将Store.MarketManPhone与OperatorPhone成角色? func TransferLegacyWeixins(mobile string) (err error) { + globals.SugarLogger.Debugf("TransferLegacyWeixins mobile:%s", mobile) if !globals.EnableWXAuth2 { return nil }