shanji 3 years ago
parent
commit
054b4d58d0
  1. 17
      BBWY.Server.Business/Order/OrderBusiness.cs

17
BBWY.Server.Business/Order/OrderBusiness.cs

@ -112,6 +112,7 @@ namespace BBWY.Server.Business
SDPayChannel = o.SDPayChannel, SDPayChannel = o.SDPayChannel,
IsAfterSaleOrder = o.IsAfterSaleOrder, IsAfterSaleOrder = o.IsAfterSaleOrder,
SellerPreferentialAmount = o.SellerPreferentialAmount, SellerPreferentialAmount = o.SellerPreferentialAmount,
PreferentialAmount = o.PreferentialAmount,
ContactName = ocs.ContactName, ContactName = ocs.ContactName,
Address = ocs.Address, Address = ocs.Address,
@ -126,7 +127,7 @@ namespace BBWY.Server.Business
DeliveryExpressFreight = oct.DeliveryExpressFreight, DeliveryExpressFreight = oct.DeliveryExpressFreight,
PlatformCommissionAmount = oct.PlatformCommissionAmount, PlatformCommissionAmount = oct.PlatformCommissionAmount,
PlatformCommissionRatio = oct.PlatformCommissionRatio, PlatformCommissionRatio = oct.PlatformCommissionRatio,
PreferentialAmount = oct.PreferentialAmount, //PreferentialAmount = oct.PreferentialAmount,
Profit = oct.Profit, Profit = oct.Profit,
PurchaseAmount = oct.PurchaseAmount, PurchaseAmount = oct.PurchaseAmount,
IsManualEdited = oct.IsManualEdited, IsManualEdited = oct.IsManualEdited,
@ -959,11 +960,23 @@ namespace BBWY.Server.Business
} }
catch catch
{ {
} }
if (orderResponse == null) 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}");
} }

Loading…
Cancel
Save