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,
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}");
}

Loading…
Cancel
Save