fix 修复 oss未使用租户 拼接租户id null问题
This commit is contained in:
parent
1bd40a0cff
commit
94797a2d2b
@ -48,7 +48,10 @@ public class OssFactory {
|
|||||||
}
|
}
|
||||||
OssProperties properties = JsonUtils.parseObject(json, OssProperties.class);
|
OssProperties properties = JsonUtils.parseObject(json, OssProperties.class);
|
||||||
// 使用租户标识避免多个租户相同key实例覆盖
|
// 使用租户标识避免多个租户相同key实例覆盖
|
||||||
String key = properties.getTenantId() + ":" + configKey;
|
String key = configKey;
|
||||||
|
if (StringUtils.isNotBlank(properties.getTenantId())) {
|
||||||
|
key = properties.getTenantId() + ":" + configKey;
|
||||||
|
}
|
||||||
OssClient client = CLIENT_CACHE.get(key);
|
OssClient client = CLIENT_CACHE.get(key);
|
||||||
// 客户端不存在或配置不相同则重新构建
|
// 客户端不存在或配置不相同则重新构建
|
||||||
if (client == null || !client.checkPropertiesSame(properties)) {
|
if (client == null || !client.checkPropertiesSame(properties)) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user