From f9032b44feda92f6386e69c41f7c62a3545fb661 Mon Sep 17 00:00:00 2001 From: youpaishidifu <1@ypshidifu.cn> Date: Tue, 3 Nov 2026 10:02:56 +0800 Subject: [PATCH] =?UTF-8?q?=E7=AC=AC66=E6=89=B9-Java=E4=BF=A1=E8=AA=89?= =?UTF-8?q?=E5=90=8C=E6=AD=A5=E5=8E=BB=E9=87=8D=E4=BF=AE=E5=A4=8D+?= =?UTF-8?q?=E4=BE=9B=E5=BA=94=E5=95=86/README=E6=9B=B4=E6=96=B0=20-=20WebM?= =?UTF-8?q?anager:=20pullCreditFromPhp=E5=8E=BB=E9=87=8D=E5=90=8C=E6=97=B6?= =?UTF-8?q?=E5=8C=B9=E9=85=8D=E7=A7=92=E5=80=BC=E5=92=8C=E6=AF=AB=E7=A7=92?= =?UTF-8?q?=E5=80=BC=EF=BC=8C=E9=98=B2=E6=AD=A2=E9=87=8D=E5=A4=8D=E6=8F=92?= =?UTF-8?q?=E5=85=A5=E5=AF=BC=E8=87=B4=E7=A7=AF=E5=88=86=E9=87=8D=E5=A4=8D?= =?UTF-8?q?=E5=8A=A0=E5=88=86=20-=20=E4=BE=9B=E5=BA=94=E5=95=86.json:=20?= =?UTF-8?q?=E8=8B=B1=E4=BC=9F=E8=BE=BE=E7=A7=BB=E5=88=B0=E9=9D=9E=E5=9B=BD?= =?UTF-8?q?=E4=BA=A7=E8=8A=AF=E7=89=87=E5=8E=82=E5=95=86=E5=88=86=E7=B1=BB?= =?UTF-8?q?=EF=BC=8C=E6=96=B0=E5=A2=9EAMD=E4=BE=9B=E5=BA=94=E5=95=86=20-?= =?UTF-8?q?=20README:=20=E6=B7=BB=E5=8A=A0=E7=89=88=E6=9C=AC=E5=8F=B7?= =?UTF-8?q?=E8=AF=AD=E4=B9=89=E8=AF=B4=E6=98=8E(x.x=E6=AD=A3=E5=BC=8F?= =?UTF-8?q?=E7=89=88/x.xx=E5=BC=80=E5=8F=91=E7=89=88)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 8 +++++--- src/main/java/Sdf1_login/WebManager.java | 10 +++++++--- src/main/resources/openai/供应商.json | 9 ++++++--- 3 files changed, 18 insertions(+), 9 deletions(-) diff --git a/README.md b/README.md index 395a786..6fd337e 100644 --- a/README.md +++ b/README.md @@ -1,8 +1,10 @@ # Sdf1系列多功能综合插件使用说明 -> 当前版本:**3.11**(`plugin.yml`) -> 适用服务端:**Paper 26.x / Minecraft 1.21+** -> 编译环境:**JDK 25**(Maven `release=25`) +> 当前版本:**3.11**(`plugin.yml`)
+> 适用服务端:**Paper 26.x / Minecraft 1.21+**
+> 编译环境:**JDK 25**(Maven `release=25`)
+> 版本号语义: **稳定正式版:x.x**,**开发测试版:x.xx**。
+> 比如说:**3.0:正式稳定版**,3.1:正式稳定版,**3.11:开发测试版**,3.01:开发测试版 ## 开源协议 diff --git a/src/main/java/Sdf1_login/WebManager.java b/src/main/java/Sdf1_login/WebManager.java index a2ab094..9fdc653 100644 --- a/src/main/java/Sdf1_login/WebManager.java +++ b/src/main/java/Sdf1_login/WebManager.java @@ -12136,12 +12136,16 @@ public class WebManager { String javaStatus = ""; String javaSource = "php"; // web/admin → php, game → game if ("game".equals(source)) javaSource = "game"; + // ★ 第66批修复(#349):created_at 单位匹配 + // Java 端自己存的是毫秒,PHP 拉回的是秒 + // 去重需同时匹配秒值和毫秒值,否则 Java 已有的记录匹配不上 → 重复插入 → 积分重复加分 try (PreparedStatement check = checkConn.prepareStatement( - "SELECT id, status FROM credit_records WHERE target_player = ? AND source = ? AND created_at = ? AND reporter_player = ?")) { + "SELECT id, status FROM credit_records WHERE target_player = ? AND source = ? AND reporter_player = ? AND (created_at = ? OR created_at = ?)")) { check.setString(1, target); check.setString(2, javaSource); - check.setLong(3, createdAt); - check.setString(4, reporter); + check.setString(3, reporter); + check.setLong(4, createdAt); // 秒 + check.setLong(5, createdAt * 1000); // 毫秒 ResultSet checkRs = check.executeQuery(); if (checkRs.next()) { javaRecordId = checkRs.getInt("id"); diff --git a/src/main/resources/openai/供应商.json b/src/main/resources/openai/供应商.json index a7bad71..fffb151 100644 --- a/src/main/resources/openai/供应商.json +++ b/src/main/resources/openai/供应商.json @@ -42,14 +42,13 @@ }, "硅基流动": "https://api.siliconflow.cn/v1", "书生端砚": "https://discovery-api.intern-ai.org.cn/v1", - "商汤":"https://token.sensenova.cn/v1" + "商汤": "https://token.sensenova.cn/v1" }, "非国产": { "OpenAI": "https://api.openai.com/v1", "Claude(Anthropic)": "https://api.anthropic.com/v1/", "推特(xAI Grok)": "https://api.x.ai/v1", "Gemini": "https://generativelanguage.googleapis.com/v1beta/openai/", - "英伟达": "https://integrate.api.nvidia.com/v1", "agnes": { "国际版": "https://apihub.agnes-ai.com/v1", "中国版": "https://apihub.agnes-ai.cn/v1", @@ -60,6 +59,10 @@ "go": "https://opencode.ai/zen/go/v1", "说明": "opencode zen可以通过9router或其它工具反代opencode cli终端免费使用。但不推荐,额度特别低。作者实测:反代出来跑了50万~100万左右就429限流。" }, - "OpenRouter": "https://openrouter.ai/api/v1" + "OpenRouter": "https://openrouter.ai/api/v1", + "芯片厂商": { + "nvidia": "https://integrate.api.nvidia.com/v1", + "amd": "https://developer.amd.com.cn/radeon/api/v1" + } } } \ No newline at end of file