Browse Source

1

AddValidOverTime
shanji 2 years ago
parent
commit
166cd267b9
  1. 13
      BBWY.Server.Business/Sync/ProductSyncBusiness.cs

13
BBWY.Server.Business/Sync/ProductSyncBusiness.cs

@ -189,8 +189,7 @@ namespace BBWY.Server.Business.Sync
AppKey = shop.AppKey, AppKey = shop.AppKey,
AppSecret = shop.AppSecret, AppSecret = shop.AppSecret,
AppToken = shop.AppToken, AppToken = shop.AppToken,
Platform = shop.PlatformId, Platform = shop.PlatformId
Spu = "10021182557318"
}; };
while (true) while (true)
{ {
@ -230,11 +229,11 @@ namespace BBWY.Server.Business.Sync
public void SyncAllShopAllProduct() public void SyncAllShopAllProduct()
{ {
var shopList = venderBusiness.GetShopList(); var shopList = venderBusiness.GetShopList();
SyncProduct(shopList.FirstOrDefault(s => s.ShopName == "趣弈手机配件专营店"), true); //SyncProduct(shopList.FirstOrDefault(s => s.ShopName == "趣弈手机配件专营店"), true);
//foreach (var shop in shopList) foreach (var shop in shopList)
//{ {
// Task.Factory.StartNew(() => SyncProduct(shop, true), CancellationToken.None, TaskCreationOptions.LongRunning, taskSchedulerManager.ProductSyncTaskScheduler); Task.Factory.StartNew(() => SyncProduct(shop, true), CancellationToken.None, TaskCreationOptions.LongRunning, taskSchedulerManager.ProductSyncTaskScheduler);
//} }
} }
} }
} }

Loading…
Cancel
Save