我的项目是租户使用的,
租户的支付配置是WechatMetaContainer.addWechatMetas 动态添加进来的
WechatMetaContainer.getTenantIds 无法返回后加的
建议:
/**
* Gets properties keys.
*
* @return the properties keys
*/
public Set getTenantIds() {
return wechatTenantService.loadTenants()
.stream()
.map(WechatMetaBean::getTenantId)
.collect(Collectors.toSet());
}
这个方法改成:
/**
* Gets properties keys.
*
* @return the properties keys
*/
public Set getTenantIds() {
if (!wechatMetaBeanMap.isEmpty()){
return wechatMetaBeanMap.keySet();
}
return wechatTenantService.loadTenants()
.stream()
.map(WechatMetaBean::getTenantId)
.collect(Collectors.toSet());
}