Browse Source

修复接口计数器引起的1688sdk实例化问题

pjzs_starttask_update
sanji 1 year ago
parent
commit
840dc0eaf5
  1. 1
      BBWY.Server.Business/PlatformSDK/PlatformSDKBusiness.cs
  2. 1
      BBWY.Server.Business/PlatformSDK/_1688Business.cs

1
BBWY.Server.Business/PlatformSDK/PlatformSDKBusiness.cs

@ -35,6 +35,7 @@ namespace BBWY.Server.Business
public PlatformSDKBusiness(IMemoryCache memoryCache, NLogManager nLogManager)
{
this.expirationTimeSpan = TimeSpan.FromMinutes(60);
this.memoryCache = memoryCache;
this.nLogManager = nLogManager;
}

1
BBWY.Server.Business/PlatformSDK/_1688Business.cs

@ -35,6 +35,7 @@ namespace BBWY.Server.Business
{
syncAPIClient = new SyncAPIClient(appKey, appSecret, restApiService);
memoryCache.Set(appKey, syncAPIClient, expirationTimeSpan);
//memoryCache.Set(appKey, syncAPIClient, TimeSpan.FromMinutes(60));
}
return syncAPIClient;
}

Loading…
Cancel
Save