mirror of
https://github.com/qaiu/netdisk-fast-download.git
synced 2026-02-24 06:05:23 +00:00
fix: 修复捐赠账号失败计数与路由外部访问问题
This commit is contained in:
@@ -48,6 +48,9 @@ public class RouterVerticle extends AbstractVerticle {
|
||||
} else {
|
||||
options = new HttpServerOptions();
|
||||
}
|
||||
|
||||
// 绑定到 0.0.0.0 以允许外部访问
|
||||
options.setHost("0.0.0.0");
|
||||
options.setPort(port);
|
||||
server = vertx.createHttpServer(options);
|
||||
|
||||
|
||||
@@ -422,8 +422,8 @@ public class DbServiceImpl implements DbService {
|
||||
|
||||
return ensureFailCountColumn(client)
|
||||
.compose(v -> client.preparedQuery(updateSql)
|
||||
.execute(Tuple.of(DONATED_ACCOUNT_DISABLE_THRESHOLD, accountId))
|
||||
.mapEmpty())
|
||||
.execute(Tuple.of(DONATED_ACCOUNT_DISABLE_THRESHOLD, accountId)))
|
||||
.map(rows -> (Void) null)
|
||||
.onFailure(e -> log.error("recordDonatedAccountFailureByToken failed", e));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user