From a650d94aafc233727f005e9ffeede7399174994c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=82=B9=E5=AE=97=E6=A5=A0?= Date: Wed, 26 Feb 2025 16:56:55 +0800 Subject: [PATCH] 1 --- business/partner/purchase/ebai/order.go | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/business/partner/purchase/ebai/order.go b/business/partner/purchase/ebai/order.go index c1c03cb7a..f30ccaddd 100644 --- a/business/partner/purchase/ebai/order.go +++ b/business/partner/purchase/ebai/order.go @@ -260,9 +260,7 @@ func (p *PurchaseHandler) Map2Order(orderData map[string]interface{}) (order *mo VendorOrgCode: utils.Interface2String(result["source"]), } - globals.SugarLogger.Debugf("----------------1") invoiceType, _ := utils.TryInterface2Int64(orderMap["invoice_type"]) - globals.SugarLogger.Debugf("----------------2") switch invoiceType { case 2: // 纸质发票 order.InvoiceEmail += "(纸质发票)" @@ -289,6 +287,7 @@ func (p *PurchaseHandler) Map2Order(orderData map[string]interface{}) (order *mo if order.StoreID > math.MaxInt32 { order.StoreID = 0 } + globals.SugarLogger.Debugf("----------------4") order.Status = p.getStatusFromVendorStatus(order.VendorStatus) if order.Status >= model.OrderStatusEndBegin { order.OrderFinishedAt = time.Now() @@ -302,6 +301,7 @@ func (p *PurchaseHandler) Map2Order(orderData map[string]interface{}) (order *mo } } + globals.SugarLogger.Debugf("----------------5") deliveryGeo := userMap["coord_amap"].(map[string]interface{}) originalLng := utils.Interface2Float64WithDefault(deliveryGeo["longitude"], 0.0) // 饿百的订单在过一段时间后,经纬度信息会变成字符串"**" originalLat := utils.Interface2Float64WithDefault(deliveryGeo["latitude"], 0.0) @@ -315,6 +315,7 @@ func (p *PurchaseHandler) Map2Order(orderData map[string]interface{}) (order *mo order.ConsigneeLat = jxutils.StandardCoordinate2Int(originalLat) products := result["products"].([]interface{})[0].([]interface{}) + globals.SugarLogger.Debugf("----------------6") for _, product2 := range products { product := product2.(map[string]interface{}) skuName := product["product_name"].(string) @@ -354,6 +355,7 @@ func (p *PurchaseHandler) Map2Order(orderData map[string]interface{}) (order *mo // } order.Skus = append(order.Skus, sku) } + globals.SugarLogger.Debugf("----------------7") giftSkus, discountMoney := getZengSkus(vendorOrderID, orderData) order.DiscountMoney = discountMoney order.Skus = append(order.Skus, giftSkus...) @@ -362,6 +364,7 @@ func (p *PurchaseHandler) Map2Order(orderData map[string]interface{}) (order *mo store, _ := dao.GetStoreDetail(dao.GetDB(), order.JxStoreID, order.VendorID, order.VendorOrgCode) order.PackagePrice = store.PackageSetting jxutils.RefreshOrderSkuRelated(order) + globals.SugarLogger.Debugf("----------------8") return order }