- WebManager: pullCreditFromPhp去重同时匹配秒值和毫秒值,防止重复插入导致积分重复加分 - 供应商.json: 英伟达移到非国产芯片厂商分类,新增AMD供应商 - README: 添加版本号语义说明(x.x正式版/x.xx开发版)
This commit is contained in:
@@ -1,8 +1,10 @@
|
||||
# Sdf1系列多功能综合插件使用说明
|
||||
|
||||
> 当前版本:**3.11**(`plugin.yml`)
|
||||
> 适用服务端:**Paper 26.x / Minecraft 1.21+**
|
||||
> 编译环境:**JDK 25**(Maven `release=25`)
|
||||
> 当前版本:**3.11**(`plugin.yml`)<br>
|
||||
> 适用服务端:**Paper 26.x / Minecraft 1.21+**<br>
|
||||
> 编译环境:**JDK 25**(Maven `release=25`)<br>
|
||||
> 版本号语义: **稳定正式版:x.x**,**开发测试版:x.xx**。<br>
|
||||
> 比如说:**3.0:正式稳定版**,3.1:正式稳定版,**3.11:开发测试版**,3.01:开发测试版
|
||||
|
||||
## 开源协议
|
||||
|
||||
|
||||
@@ -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");
|
||||
|
||||
@@ -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"
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user