问题10修复: CDK兑换不到账+假密码+隐藏密码框
CDK兑换修复: - PHP远程CDK兑换改为写pending交易(cdK_redeem+pending) - PHP远程CDK兑换同时更新bond_cache - Java端移除sdf1反射调用(不必要的复杂度) - 远程/本地CDK兑换链路统一:PHP更新cache→写pending→Java拉取→addBonds 假密码/密码框修复: - player.php商城购买: 总价≤1000时隐藏密码输入框 - player.phpCDK兑换: 完全移除密码输入框(CDK免验证) - shop.php移除硬性密码检查,交给validateWebAccess处理 - 动态切换:调整数量时密码框实时显示/隐藏
This commit is contained in:
@@ -4511,13 +4511,13 @@ public class WebManager {
|
||||
txSuccess = true;
|
||||
confirmTransaction(txId);
|
||||
} else if (type.equals("cdk_redeem")) {
|
||||
// CDK兑换:增加债券(不受冻结限制)
|
||||
// CDK兑换:增加债券(本地CDK由PHP标记used,远程CDK由sdf1标记)
|
||||
int balanceBefore = plugin.getBondManager().getBonds(playerName);
|
||||
plugin.getBondManager().addBonds(playerName, amount, "web_cdk", "", "Web商城", "CDK兑换");
|
||||
int balanceAfter = plugin.getBondManager().getBonds(playerName);
|
||||
plugin.getLogger().info("[Web交易] 玩家 " + playerName + " CDK兑换,金额: " + amount);
|
||||
|
||||
// ★ 通知在线玩家
|
||||
// 通知在线玩家
|
||||
Player cdkPlayer = plugin.getServer().getPlayer(playerName);
|
||||
if (cdkPlayer != null && cdkPlayer.isOnline()) {
|
||||
cdkPlayer.sendMessage("§6[债券] §aCDK兑换成功!§f +§a" + amount + "§f 债券");
|
||||
|
||||
Reference in New Issue
Block a user