Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,9 @@ public WxMpConfigStorage wxMaConfig() {
}

private WxMpRedissonConfigImpl getWxMpInRedissonConfigStorage() {
RedisProperties redisProperties = properties.getConfigStorage().getRedis();
String configuredHost = applicationContext.cfg().get(WxMpProperties.PREFIX + ".config-storage.redis.host");
RedissonClient redissonClient;
if (redisProperties != null && StringUtils.isNotEmpty(redisProperties.getHost())) {
if (StringUtils.isNotEmpty(configuredHost)) {
Copy link
Copy Markdown

@augmentcode augmentcode Bot Jun 5, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这里用 StringUtils.isNotEmpty(configuredHost) 会把 wx.mp.config-storage.redis.host=(空值但 key 存在)视为“未配置”。但 wxMpRedissonClient()@Condition(onProperty=...) 在 Solon 语义上是“有属性即可”,可能仍会创建内置 bean,导致选择逻辑与 bean 是否存在不一致(甚至空 host 下初始化失败)。

Severity: medium

Fix This in Augment

🤖 Was this useful? React with 👍 or 👎, or 🚀 if it prevented an incident/outage.

redissonClient = applicationContext.getBean("wxMpRedissonClient");
} else {
redissonClient = applicationContext.getBean(RedissonClient.class);
Expand Down