- WebManager: pullCreditFromPhp去重同时匹配秒值和毫秒值,防止重复插入导致积分重复加分 - 供应商.json: 英伟达移到非国产芯片厂商分类,新增AMD供应商 - README: 添加版本号语义说明(x.x正式版/x.xx开发版)
This commit is contained in:
@@ -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