From d13e27f2ba910e40973931fec0a4f48529ece386 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=82=B9=E5=AE=97=E6=A5=A0?= Date: Thu, 26 Oct 2023 14:11:03 +0800 Subject: [PATCH] 1 --- business/jxcallback/orderman/financial.go | 1 + business/partner/purchase/tao_vegetable/order.go | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/business/jxcallback/orderman/financial.go b/business/jxcallback/orderman/financial.go index 7a5263252..6fbd0a189 100644 --- a/business/jxcallback/orderman/financial.go +++ b/business/jxcallback/orderman/financial.go @@ -17,6 +17,7 @@ const ( // 处理正向订单结账信息 func (c *OrderManager) SaveOrderFinancialInfo(order *model.OrderFinancial, operation string) (err error) { + globals.SugarLogger.Debugf("=============OrderFinancial := %s", utils.Format4Output(order, false)) db := dao.GetDB() txDB, _ := dao.Begin(db) defer func() { diff --git a/business/partner/purchase/tao_vegetable/order.go b/business/partner/purchase/tao_vegetable/order.go index ea0cd6807..38ca993ed 100644 --- a/business/partner/purchase/tao_vegetable/order.go +++ b/business/partner/purchase/tao_vegetable/order.go @@ -348,11 +348,15 @@ func (c *PurchaseHandler) onOrderMsg(orderStatus, orderId string, orderCallback // 商户接单/支付完成代表新订单 if msg.OrderStatus == tao_vegetable.OrderStatusPayFinsh { order, orderMap, err2 := c.getOrder("", msg.BizOrderId, msg.StoreId) + globals.SugarLogger.Debugf("=============order := %s", utils.Format4Output(order, false)) + globals.SugarLogger.Debugf("=============orderMap := %s", utils.Format4Output(orderMap, false)) + globals.SugarLogger.Debugf("=============err2 := %v", err) if err = err2; err == nil { err = partner.CurOrderManager.OnOrderNew(order, status) if err == nil { utils.CallFuncAsync(func() { if msg.OrderStatus == tao_vegetable.OrderStatusPayFinsh { + globals.SugarLogger.Debugf("=============orderMap := %s", utils.Format4Output(orderMap, false)) c.OnOrderDetail(orderMap, partner.CreatedPeration) if handler := partner.GetPurchaseOrderHandlerFromVendorID(model.VendorIDTaoVegetable); handler != nil { handler.AcceptOrRefuseOrder(order, true, "jxAdmin")