This commit is contained in:
邹宗楠
2024-10-28 16:02:49 +08:00
parent c1eec9eb67
commit 9b80cdf7a3
4 changed files with 3 additions and 11 deletions

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, "黑名单拒单", "")
} }

View File

@@ -6111,7 +6111,6 @@ func GetHomePageByLocation(ctx *jxcontext.Context, lng, lat float64, needWalkDis
homePages = append(homePages, homePage) homePages = append(homePages, homePage)
} }
// todo 明天测试西南交大店首页没商品 // todo 明天测试西南交大店首页没商品
globals.SugarLogger.Debugf("----------homePages := %s", utils.Format4Output(homePages, false))
return homePages, "", nil return homePages, "", nil
} }

View File

@@ -359,13 +359,6 @@ func (c *PrinterHandler) PrintOrder(ctx *jxcontext.Context, store *model.Store,
} else { } else {
content = c.getOrderContent(order, store.Tel1, storeDetail) content = c.getOrderContent(order, store.Tel1, storeDetail)
} }
if store.PrinterSN == "525553742" {
globals.SugarLogger.Debugf("-------------storeDetail := %s", utils.Format4Output(storeDetail, false))
globals.SugarLogger.Debugf("-------------order := %s", utils.Format4Output(order, false))
globals.SugarLogger.Debugf("-------------printType := %s", utils.Format4Output(printType, false))
globals.SugarLogger.Debugf("-------------asfOrder := %s", utils.Format4Output(asfOrder, false))
globals.SugarLogger.Debugf("-------------content := %s", content)
}
return c.PrintMsg(ctx, store.PrinterSN, store.PrinterKey, order.VendorOrderID, content) return c.PrintMsg(ctx, store.PrinterSN, store.PrinterKey, order.VendorOrderID, content)
} }

View File

@@ -567,7 +567,7 @@ func (c *PurchaseHandler) AcceptOrRefuseOrder(order *model.GoodsOrder, isAcceptI
}) { }) {
err = nil err = nil
goodsOrder, _ := partner.CurOrderManager.LoadOrder(order.VendorOrderID, order.VendorID) goodsOrder, _ := partner.CurOrderManager.LoadOrder(order.VendorOrderID, order.VendorID)
if goodsOrder.Status <= model.OrderStatusAccepted { if goodsOrder.Status < model.OrderStatusAccepted {
order.Status = model.OrderStatusAccepted order.Status = model.OrderStatusAccepted
dao.UpdateEntity(dao.GetDB(), order, "Status") dao.UpdateEntity(dao.GetDB(), order, "Status")
} }