From 054b4d58d07cbb680d6874668b1ed28e888434e9 Mon Sep 17 00:00:00 2001 From: shanj <18996038927@163.com> Date: Thu, 22 Sep 2022 22:14:19 +0800 Subject: [PATCH] 1 --- BBWY.Server.Business/Order/OrderBusiness.cs | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) diff --git a/BBWY.Server.Business/Order/OrderBusiness.cs b/BBWY.Server.Business/Order/OrderBusiness.cs index 9b4cb4c8..13d7f9cc 100644 --- a/BBWY.Server.Business/Order/OrderBusiness.cs +++ b/BBWY.Server.Business/Order/OrderBusiness.cs @@ -112,6 +112,7 @@ namespace BBWY.Server.Business SDPayChannel = o.SDPayChannel, IsAfterSaleOrder = o.IsAfterSaleOrder, SellerPreferentialAmount = o.SellerPreferentialAmount, + PreferentialAmount = o.PreferentialAmount, ContactName = ocs.ContactName, Address = ocs.Address, @@ -126,7 +127,7 @@ namespace BBWY.Server.Business DeliveryExpressFreight = oct.DeliveryExpressFreight, PlatformCommissionAmount = oct.PlatformCommissionAmount, PlatformCommissionRatio = oct.PlatformCommissionRatio, - PreferentialAmount = oct.PreferentialAmount, + //PreferentialAmount = oct.PreferentialAmount, Profit = oct.Profit, PurchaseAmount = oct.PurchaseAmount, IsManualEdited = oct.IsManualEdited, @@ -959,11 +960,23 @@ namespace BBWY.Server.Business } catch { - + } if (orderResponse == null) { + var relayAPIHost = GetPlatformRelayAPIHost(request.Platform); + var orderApiResult = restApiService.SendRequest(relayAPIHost, "api/PlatformSDK/GetNoPayOrder", new SearchPlatformOrderRequest() + { + OrderId = request.OrderId, + AppKey = request.AppKey, + AppSecret = request.AppSecret, + AppToken = request.AppToken, + Platform = request.Platform + }, null, HttpMethod.Post); + if (orderApiResult.StatusCode != System.Net.HttpStatusCode.OK) + throw new BusinessException($"获取未付款订单失败 {orderApiResult.Content}"); + }