|
|
@ -913,10 +913,10 @@ namespace BBWY.Server.Business |
|
|
|
var shop = mdsBusiness.GetShopInfoByShopId(shopId); |
|
|
|
try |
|
|
|
{ |
|
|
|
if (!syncOrderMethodDic.ContainsKey(shop.Platform)) |
|
|
|
if (!syncOrderMethodDic.ContainsKey(shop.PlatformId)) |
|
|
|
throw new Exception("不支持的平台"); |
|
|
|
|
|
|
|
var relayAPIHost = GetPlatformRelayAPIHost(shop.Platform); |
|
|
|
var relayAPIHost = GetPlatformRelayAPIHost(shop.PlatformId); |
|
|
|
var orderListApiResult = restApiService.SendRequest(relayAPIHost, "api/PlatformSDK/GetOrderList", new SearchPlatformOrderRequest() |
|
|
|
{ |
|
|
|
StartDate = startTime ?? DateTime.Now.AddHours(-3), |
|
|
@ -926,7 +926,7 @@ namespace BBWY.Server.Business |
|
|
|
AppToken = shop.AppToken, |
|
|
|
PageIndex = 1, |
|
|
|
PageSize = 100, |
|
|
|
Platform = shop.Platform, |
|
|
|
Platform = shop.PlatformId, |
|
|
|
JDColType = string.IsNullOrEmpty(shop.VenderType) ? "0" : shop.VenderType, |
|
|
|
SaveResponseLog = true, |
|
|
|
OrderId = orderId |
|
|
@ -941,7 +941,7 @@ namespace BBWY.Server.Business |
|
|
|
if (orderListResponse.Data == null || orderListResponse.Data.Count == 0) |
|
|
|
return; |
|
|
|
|
|
|
|
syncOrderMethodDic[shop.Platform](orderListResponse.Data, shopId, relayAPIHost, shop.AppKey, shop.AppSecret, shop.AppToken, shop.PlatformCommissionRatio ?? 0.05M); |
|
|
|
syncOrderMethodDic[shop.PlatformId](orderListResponse.Data, shopId, relayAPIHost, shop.AppKey, shop.AppSecret, shop.AppToken, shop.PlatformCommissionRatio ?? 0.05M); |
|
|
|
} |
|
|
|
catch (Exception ex) |
|
|
|
{ |
|
|
|