From c32f2d7474153e4b5ba604997fc4652cdbafa0c4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=8B=8F=E5=B0=B9=E5=B2=9A?= <770236076@qq.com> Date: Thu, 7 May 2020 17:12:25 +0800 Subject: [PATCH] =?UTF-8?q?=E5=B0=91=E5=87=BA100?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- business/jxcallback/orderman/order.go | 4 ++-- business/partner/delivery/mtps/store.go | 3 ++- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/business/jxcallback/orderman/order.go b/business/jxcallback/orderman/order.go index d8ad1d4e4..3a5b78d78 100644 --- a/business/jxcallback/orderman/order.go +++ b/business/jxcallback/orderman/order.go @@ -395,9 +395,9 @@ func (c *OrderManager) updateOrderSkuOtherInfo(order *model.GoodsOrder, db *dao. if price == int(v.SalePrice) { var earningPrice = 0 if v.ShopPrice < v.SalePrice { - earningPrice = int(v.ShopPrice) * storePayPercentage + earningPrice = int(v.ShopPrice) * storePayPercentage / 100 } else { - earningPrice = int(v.ShopPrice) * storePayPercentage + earningPrice = int(v.ShopPrice) * storePayPercentage / 100 } v.EarningPrice = int64(earningPrice) globals.SugarLogger.Debugf("TestearningPrice", earningPrice) diff --git a/business/partner/delivery/mtps/store.go b/business/partner/delivery/mtps/store.go index 453f222e1..bd1a84651 100644 --- a/business/partner/delivery/mtps/store.go +++ b/business/partner/delivery/mtps/store.go @@ -94,8 +94,9 @@ func (c *DeliveryHandler) GetStore(ctx *jxcontext.Context, storeID int, vendorSt VendorID: model.VendorIDMTPS, VendorStoreID: shopInfo.ShopID, CourierStatus: model.StoreStatusOpened, - AuditStatus: model.StoreAuditStatusOnline, + // AuditStatus: model.StoreAuditStatusOnline, } + // result, err := api.MtpsAPI.GetStoreStatus(shopInfo.ShopName) } return storeDetail, err }