修复多个问题:空白日志+禁止袭击更名+CDK逻辑简化

问题1修复: 移除空白日志
- 移除Web登录确认轮询和密码验证轮询的PHP响应日志
- 这些日志在data为空时输出无意义内容

问题6修复: 禁止袭击更名
- 启用状态(denyRaid=true)显示禁止袭击
- 禁用状态(denyRaid=false)显示启用袭击
- 修改AreaGUIManager和AreaCLIManager显示逻辑

问题3修复: CDK兑换逻辑简化
- PHP不再更新bond_cache,只记录pending交易
- Java端负责拉取交易并处理加债券
- 远程CDK和本地CDK统一处理逻辑
This commit is contained in:
2026-06-26 10:59:50 +08:00
parent 59313d4f32
commit 40edd85ea7
3 changed files with 6 additions and 3 deletions
@@ -975,6 +975,11 @@ public class AreaCLIManager {
String field = def[2];
boolean landDefault = getLandDefaultVal(land, field);
// 特殊处理:denyRaid的显示名称
if (field.equals("denyRaid")) {
name = landDefault ? "禁止袭击" : "启用袭击";
}
// 如果有per-player覆盖,使用覆盖值;否则使用领地默认
if (playerPerms.containsKey(field)) {
boolean playerVal = playerPerms.get(field);
+1 -1
View File
@@ -553,7 +553,7 @@ public class AreaGUIManager implements Listener {
perms.add(new PermEntry("骑乘坐具", !land.denyMount));
perms.add(new PermEntry("投掷末影珍珠", !land.denyEnderPearl));
perms.add(new PermEntry("投掷物(三叉戟/雪球/风蛋)", !land.denyThrownProjectiles));
perms.add(new PermEntry("禁止袭击", !land.denyRaid));
perms.add(new PermEntry(land.denyRaid ? "禁止袭击" : "启用袭击", !land.denyRaid));
perms.add(new PermEntry("弓箭射击", !land.denyBow));
perms.add(new PermEntry("药水效果", !land.denyPotion));
perms.add(new PermEntry("点燃", !land.denyFire));
-2
View File
@@ -3901,7 +3901,6 @@ public class WebManager {
// 成功 → 重置
loginPollFailCount = 0;
plugin.getLogger().info("[Web登录确认轮询] ★ PHP响应(前300字符): " + json.substring(0, Math.min(300, json.length())));
if (!json.contains("\"success\":true")) {
plugin.getLogger().info("[Web登录确认轮询] ✗ PHP响应非success");
@@ -4048,7 +4047,6 @@ public class WebManager {
}
// 成功 → 重置
loginPollFailCount = 0;
plugin.getLogger().info("[Web密码验证轮询] ★ PHP响应(前300字符): " + json.substring(0, Math.min(300, json.length())));
if (!json.contains("\"success\":true")) {
plugin.getLogger().info("[Web密码验证轮询] ✗ PHP响应非success");
return;