第65批-续4:修复SQLite3Stmt::changes()不存在+卡片按钮对齐+恢复出厂并发请求

This commit is contained in:
ypsdf1
2026-10-30 20:12:42 +08:00
parent 188ec55b00
commit 1316ea56e8
2 changed files with 32 additions and 29 deletions
+2 -2
View File
@@ -530,9 +530,9 @@ switch ($action) {
$stmt->bindValue(9, $amount, SQLITE3_FLOAT);
$stmt->bindValue(10, $ruleName, SQLITE3_TEXT);
$stmt->execute();
$changed = $db->changes();
// PHP 没有的规则则插入
if ($stmt->changes() === 0) {
if ($changed === 0) {
$stmt2 = $db->prepare("INSERT OR IGNORE INTO credit_rules (rule_name, min_score, max_score, restriction_type, restriction_duration, enabled, description, limit_amount, multiplier, amount) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)");
$stmt2->bindValue(1, $ruleName, SQLITE3_TEXT);
$stmt2->bindValue(2, $minScore, SQLITE3_INTEGER);