店铺优化相关功能
This commit is contained in:
1 parent
9805792aed
commit
0e6a927cf2
43 files changed
+3305
-1604
No files matched your search
@@ -19,6 +19,9 @@ namespace TemuKJD.BLL.PddApi
|
||||
{
|
||||
if (isForceRefresh || (shop.AuthUpdateTime <= DateTime.Now.AddDays(-1) && shop.AuthExpiresTime <= DateTime.Now))
|
||||
{
|
||||
if (!GlobalConfig.PddClentInfoList.Any(c => c.client_id == PddApi.clientId_pi_xiu_guan_jia))
|
||||
return;
|
||||
|
||||
string errStr = "";
|
||||
var authInfo = PddApiHelper.GetE57ShopPddToken(shop, out errStr);
|
||||
if (errStr.IsNullOrEmpty() || (shop.AuthUpdateTime <= DateTime.Now.AddDays(-1) && shop.AuthExpiresTime <= DateTime.Now))
|
||||
@@ -104,6 +107,7 @@ namespace TemuKJD.BLL.PddApi
|
||||
{
|
||||
var dataStr = JsonHelper.SerializeObject(JsonHelper.JObjectParse(html)["data"]);
|
||||
var serverApiAuthList = JsonHelper.DeserializeJsonToList<AuthInfo>(dataStr);
|
||||
serverApiAuthList = serverApiAuthList.Where(a => GlobalConfig.PddClentInfoList.Any(c => c.client_id == a.AppKey)).ToList();
|
||||
foreach (var serverAuth in serverApiAuthList)
|
||||
{
|
||||
var shop = shopList.FirstOrDefault(s => s.ShopId == serverAuth.ShopId);
|
||||
|
||||
Reference in new issue
Block a user