youzanyun-open-sdk
Advanced tools
Comparing version 1.2.1 to 1.2.2
@@ -15,2 +15,3 @@ const delay = require('delay'); | ||
env, | ||
appName, | ||
tokenHost | ||
@@ -23,4 +24,6 @@ }) { | ||
this.httpClient = httpClient; | ||
this.tokenLockKey = `yzy_${env}_token_lock`; | ||
this.tokenKdtsKey = `yzy_${env}_token_kdts`; | ||
this.tokenLockKey = `yzy_${appName}_${env}_token_lock`; | ||
this.tokenKdtsKey = `yzy_${appName}_${env}_token_kdts`; | ||
this.env = env; | ||
this.appName = appName; | ||
@@ -38,3 +41,3 @@ this.tokenService = new Token({ | ||
this.cloudType = CloudTypeSelf; | ||
this.tokenCacheKeyPrefix = `yzy_${env}_token_${CloudTypeSelf}_`; | ||
this.tokenCacheKeyPrefix = `yzy_${this.appName}_${this.env}_token_${CloudTypeSelf}_`; | ||
} | ||
@@ -50,3 +53,3 @@ | ||
this.cloudType = CloudTypeTool; | ||
this.tokenCacheKeyPrefix = `yzy_${env}_token_${CloudTypeTool}_`; | ||
this.tokenCacheKeyPrefix = `yzy_${this.appName}_${this.env}_token_${CloudTypeTool}_`; | ||
} | ||
@@ -123,3 +126,2 @@ | ||
} | ||
// 刷新 | ||
@@ -126,0 +128,0 @@ let newtoken = await this.tokenService.refreshCloudToolToken(token.refresh_token); |
{ | ||
"name": "youzanyun-open-sdk", | ||
"version": "1.2.1", | ||
"version": "1.2.2", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
28614
935