第65批-续4:修复SQLite3Stmt::changes()不存在+卡片按钮对齐+恢复出厂并发请求
This commit is contained in:
+2
-2
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user