|
@ -6,9 +6,7 @@ using BBWYB.Server.Model.Db; |
|
|
using BBWYB.Server.Model.Dto; |
|
|
using BBWYB.Server.Model.Dto; |
|
|
using Microsoft.Extensions.Caching.Memory; |
|
|
using Microsoft.Extensions.Caching.Memory; |
|
|
using Newtonsoft.Json.Linq; |
|
|
using Newtonsoft.Json.Linq; |
|
|
using System.Net.Http.Headers; |
|
|
|
|
|
using System.Text.RegularExpressions; |
|
|
using System.Text.RegularExpressions; |
|
|
using static Google.Protobuf.Reflection.SourceCodeInfo.Types; |
|
|
|
|
|
|
|
|
|
|
|
namespace BBWYB.Server.Business |
|
|
namespace BBWYB.Server.Business |
|
|
{ |
|
|
{ |
|
@ -59,7 +57,7 @@ namespace BBWYB.Server.Business |
|
|
{ "Accept-Encoding","gzip, deflate, br"}, |
|
|
{ "Accept-Encoding","gzip, deflate, br"}, |
|
|
{ "Accept-Language","zh-CN,zh;q=0.9,en;q=0.8,en-GB;q=0.7,en-US;q=0.6"} |
|
|
{ "Accept-Language","zh-CN,zh;q=0.9,en;q=0.8,en-GB;q=0.7,en-US;q=0.6"} |
|
|
}; |
|
|
}; |
|
|
purchaseProductCacheTimeSpan = TimeSpan.FromDays(1); |
|
|
purchaseProductCacheTimeSpan = TimeSpan.FromHours(6); |
|
|
_1688ColorPropertyFieldIdList = new List<int>() { 3216, 1627207, 1234, 3151, 7853, 446, 374, 404, 100019516, 3114, 2068, 100018474 }; |
|
|
_1688ColorPropertyFieldIdList = new List<int>() { 3216, 1627207, 1234, 3151, 7853, 446, 374, 404, 100019516, 3114, 2068, 100018474 }; |
|
|
//jobject["data"]["1081181309101"] != null ?
|
|
|
//jobject["data"]["1081181309101"] != null ?
|
|
|
// jobject["data"]["1081181309101"]["data"]["location"].ToString() :
|
|
|
// jobject["data"]["1081181309101"]["data"]["location"].ToString() :
|
|
@ -265,7 +263,19 @@ namespace BBWYB.Server.Business |
|
|
PurchaseProductId = request.PurchaseProductId |
|
|
PurchaseProductId = request.PurchaseProductId |
|
|
}; |
|
|
}; |
|
|
} |
|
|
} |
|
|
return null; |
|
|
if (_1688pageResult.Content.Contains("代销特供商品") && |
|
|
|
|
|
_1688pageResult.Content.Contains("仅限有授权") && |
|
|
|
|
|
_1688pageResult.Content.Contains("暂时无法查看")) |
|
|
|
|
|
{ |
|
|
|
|
|
return new PurchaseSkuBasicInfoResponse() |
|
|
|
|
|
{ |
|
|
|
|
|
IsInvalid = true, |
|
|
|
|
|
IsNoPermission = true, |
|
|
|
|
|
PurchasePlatform = request.Platform, |
|
|
|
|
|
APIMode = request.FirstApiMode, |
|
|
|
|
|
PurchaseProductId = request.PurchaseProductId |
|
|
|
|
|
}; |
|
|
|
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
var jsonStr = match.Groups[2].Value; |
|
|
var jsonStr = match.Groups[2].Value; |
|
@ -429,7 +439,6 @@ namespace BBWYB.Server.Business |
|
|
} |
|
|
} |
|
|
catch |
|
|
catch |
|
|
{ |
|
|
{ |
|
|
|
|
|
|
|
|
return null; |
|
|
return null; |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|