fix: 修复捐赠账号失败计数与路由外部访问问题

This commit is contained in:
rensumo
2026-02-22 12:36:20 +08:00
parent 81ffbbd6b1
commit 6355c35452
2 changed files with 5 additions and 2 deletions

View File

@@ -48,6 +48,9 @@ public class RouterVerticle extends AbstractVerticle {
} else { } else {
options = new HttpServerOptions(); options = new HttpServerOptions();
} }
// 绑定到 0.0.0.0 以允许外部访问
options.setHost("0.0.0.0");
options.setPort(port); options.setPort(port);
server = vertx.createHttpServer(options); server = vertx.createHttpServer(options);

View File

@@ -422,8 +422,8 @@ public class DbServiceImpl implements DbService {
return ensureFailCountColumn(client) return ensureFailCountColumn(client)
.compose(v -> client.preparedQuery(updateSql) .compose(v -> client.preparedQuery(updateSql)
.execute(Tuple.of(DONATED_ACCOUNT_DISABLE_THRESHOLD, accountId)) .execute(Tuple.of(DONATED_ACCOUNT_DISABLE_THRESHOLD, accountId)))
.mapEmpty()) .map(rows -> (Void) null)
.onFailure(e -> log.error("recordDonatedAccountFailureByToken failed", e)); .onFailure(e -> log.error("recordDonatedAccountFailureByToken failed", e));
} }