Update: 2026-06-26 20:52:17
This commit is contained in:
@@ -4,8 +4,12 @@ require_once __DIR__ . '/../../connect.php';
|
||||
$id = filterRequest("id");
|
||||
|
||||
$allowedFields = [
|
||||
"kazan", "comfortPrice", "speedPrice", "deliveryPrice",
|
||||
"freePrice", "latePrice", "heavyPrice", "adminId", "naturePrice", "fuelPrice", "familyPrice"
|
||||
"kazanPercent", "fuelPrice", "currency",
|
||||
"speedPrice", "comfortPrice", "ladyPrice",
|
||||
"electricPrice", "vanPrice", "deliveryPrice",
|
||||
"mishwarVipPrice", "fixedPrice", "awfarPrice",
|
||||
"normalMinPrice", "peakMinPrice", "lateMinPrice",
|
||||
"adminId"
|
||||
];
|
||||
|
||||
$setParts = [];
|
||||
@@ -32,7 +36,6 @@ $stmt->execute($params);
|
||||
|
||||
$userIdToLog = $user_id ?? 'unknown_admin';
|
||||
|
||||
// تسجيل العملية في السجل دائماً
|
||||
$auditResult = logAudit($con, $userIdToLog, "تحديث عمولة/أسعار النظام (Kazan)", "kazan", $id, $params);
|
||||
|
||||
$debugLog = "[" . date('Y-m-d H:i:s') . "] Kazan Update Triggered. User: $userIdToLog. Audit Result: " . ($auditResult === true ? 'SUCCESS' : $auditResult) . "\n";
|
||||
@@ -43,4 +46,4 @@ if ($stmt->rowCount() > 0) {
|
||||
} else {
|
||||
jsonSuccess(null, "Kazan data remains unchanged or updated. Audit: " . ($auditResult === true ? 'OK' : $auditResult));
|
||||
}
|
||||
?>
|
||||
?>
|
||||
|
||||
Reference in New Issue
Block a user