From 5d363f8c0a6caa015bcc2699ae8dbc2dbb2dd793 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=82=B9=E5=AE=97=E6=A5=A0?= Date: Fri, 28 Oct 2022 19:08:50 +0800 Subject: [PATCH] 1 --- business/partner/purchase/tiktok_store/financial.go | 1 + business/partner/purchase/tiktok_store/order.go | 4 +++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/business/partner/purchase/tiktok_store/financial.go b/business/partner/purchase/tiktok_store/financial.go index f6f6e023f..3443aedf9 100644 --- a/business/partner/purchase/tiktok_store/financial.go +++ b/business/partner/purchase/tiktok_store/financial.go @@ -152,6 +152,7 @@ func (p *PurchaseHandler) OrderDetail2Financial(result *order_orderDetail_respon } else { err = nil } + globals.SugarLogger.Debugf("==========3%s", utils.Format4Output(order, false)) // 订单 for _, x := range result.SkuOrderList { diff --git a/business/partner/purchase/tiktok_store/order.go b/business/partner/purchase/tiktok_store/order.go index 28e78349b..6c75119cb 100644 --- a/business/partner/purchase/tiktok_store/order.go +++ b/business/partner/purchase/tiktok_store/order.go @@ -283,14 +283,16 @@ func (c *PurchaseHandler) onOrderMsg(msgId, orderId string, msg interface{}) (re // 已经支付的订单,当做新订单创建在平台内部 ----------------- if msgId == tiktokShop.CallbackPayOrderMsgTagId { order, err := c.GetOrder(utils.Int64ToStr(appOrgCode), orderId, "") // 获取平台订单详情,制作本地订单 + globals.SugarLogger.Debugf("==========0%s", utils.Format4Output(order, false)) if err != nil { return tiktokShop.Err2CallbackResponse(err, "") } if err := partner.CurOrderManager.OnOrderNew(order, status); err != nil { return tiktokShop.Err2CallbackResponse(err, "") } - + globals.SugarLogger.Debugf("==========1%s", utils.Format4Output(order, false)) orderMap, err := c.getOrderMap("", orderId, "") + globals.SugarLogger.Debugf("==========2%s", utils.Format4Output(orderMap, false)) utils.CallFuncAsync(func() { switch msgId { case tiktokShop.CallbackPayOrderMsgTagId: