Update: 2026-07-06 01:51:42
This commit is contained in:
@@ -0,0 +1,34 @@
|
||||
<?php
|
||||
// =========================================================
|
||||
// backend/bot/update_jordan_kazan.php
|
||||
// Updates the base pricing for Jordan based on the agreed strategy
|
||||
// =========================================================
|
||||
|
||||
require_once __DIR__ . '/../core/bootstrap.php';
|
||||
require_once __DIR__ . '/../functions.php';
|
||||
|
||||
try {
|
||||
$con = Database::get('main');
|
||||
} catch (Exception $e) {
|
||||
die("Database connection failed: " . $e->getMessage() . "\n");
|
||||
}
|
||||
|
||||
echo "Updating Kazan pricing for Jordan...\n";
|
||||
|
||||
// Update the kazan table where country is Jordan
|
||||
$sql = "UPDATE kazan
|
||||
SET start_price = 0.40,
|
||||
price_km = 0.30,
|
||||
normal_min_price = 0.05
|
||||
WHERE country = 'Jordan' OR country = 'JO'";
|
||||
|
||||
$stmt = $con->prepare($sql);
|
||||
$result = $stmt->execute();
|
||||
|
||||
if ($result) {
|
||||
$rowCount = $stmt->rowCount();
|
||||
echo "Successfully updated $rowCount row(s) for Jordan in the kazan table.\n";
|
||||
echo "New Pricing: Base=0.40 JOD, Per Km=0.30 JOD, Per Min=0.05 JOD\n";
|
||||
} else {
|
||||
echo "Failed to update kazan table.\n";
|
||||
}
|
||||
Reference in New Issue
Block a user