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 {
|
} 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);
|
||||||
|
|
||||||
|
|||||||
@@ -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));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user