This commit is contained in:
邹宗楠
2024-10-28 16:50:18 +08:00
parent ced2884efe
commit a5cd159e63

View File

@@ -269,10 +269,10 @@ func init() {
} }
} }
if isAcceptIt { if isAcceptIt {
if err == nil { //if err == nil {
sch.notifyNewOrder(order, false) // sch.notifyNewOrder(order, false)
msghub.OnNewOrder(order) // msghub.OnNewOrder(order)
} //}
} else { } else {
partner.CurOrderManager.OnOrderMsg(order, "黑名单拒单", "") partner.CurOrderManager.OnOrderMsg(order, "黑名单拒单", "")
} }
@@ -412,10 +412,7 @@ func (s *DefScheduler) OnOrderNew(order *model.GoodsOrder, isPending bool, isAut
mtwm.GetAPI(order.VendorOrgCode, jxutils.GetSaleStoreIDFromOrder(order), order.VendorStoreID).PushPrintMsg(order.VendorOrderID) mtwm.GetAPI(order.VendorOrgCode, jxutils.GetSaleStoreIDFromOrder(order), order.VendorStoreID).PushPrintMsg(order.VendorOrderID)
} }
if order.Status >= model.OrderStatusNew { if order.Status >= model.OrderStatusNew {
if order.JxStoreID == 669512 { if !isPending && order.Status >= model.OrderStatusNew { // 有订单消息错序先收到接单消息再收到新订单消息导致接单TIMER不动作这里补一下
globals.SugarLogger.Debugf("-------------printOrder:%s,isPending:%v", utils.Format4Output(order, false), isPending)
}
if !isPending && order.Status >= model.OrderStatusAccepted { // 有订单消息错序先收到接单消息再收到新订单消息导致接单TIMER不动作这里补一下
s.notifyNewOrder(order, isAuto) s.notifyNewOrder(order, isAuto)
msghub.OnNewOrder(order) msghub.OnNewOrder(order)
} }