1
This commit is contained in:
@@ -412,6 +412,9 @@ 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 {
|
||||||
|
globals.SugarLogger.Debugf("-------------printOrder:%s", utils.Format4Output(order, false))
|
||||||
|
}
|
||||||
if !isPending && order.Status >= model.OrderStatusAccepted { // 有订单消息错序,先收到接单消息,再收到新订单消息,导致接单TIMER不动作,这里补一下
|
if !isPending && order.Status >= model.OrderStatusAccepted { // 有订单消息错序,先收到接单消息,再收到新订单消息,导致接单TIMER不动作,这里补一下
|
||||||
s.notifyNewOrder(order, isAuto)
|
s.notifyNewOrder(order, isAuto)
|
||||||
msghub.OnNewOrder(order)
|
msghub.OnNewOrder(order)
|
||||||
@@ -1727,9 +1730,6 @@ func setFakeActualPayPrice(order *model.GoodsOrder) (newOrder *model.GoodsOrder)
|
|||||||
}
|
}
|
||||||
|
|
||||||
func (s *DefScheduler) notifyNewOrder(order *model.GoodsOrder, isAuto bool) {
|
func (s *DefScheduler) notifyNewOrder(order *model.GoodsOrder, isAuto bool) {
|
||||||
if order.VendorID == 0 {
|
|
||||||
globals.SugarLogger.Debugf("==order1 := %s", utils.Format4Output(order, false))
|
|
||||||
}
|
|
||||||
if order.Flag&model.OrderFlagMaskFake == 0 && order.VendorID != model.VendorIDEBAI {
|
if order.Flag&model.OrderFlagMaskFake == 0 && order.VendorID != model.VendorIDEBAI {
|
||||||
utils.CallFuncAsync(func() {
|
utils.CallFuncAsync(func() {
|
||||||
// order = setFakeActualPayPrice(order)
|
// order = setFakeActualPayPrice(order)
|
||||||
|
|||||||
Reference in New Issue
Block a user