Update: 2026-07-06 03:30:52
This commit is contained in:
@@ -8,7 +8,10 @@ $country = filterRequest('country') ?: filterRequest('country_code');
|
||||
$distance = (float)(filterRequest('distance') ?: 0);
|
||||
$siroPrice = (float)(filterRequest('siro_price') ?: 0);
|
||||
|
||||
file_put_contents('/tmp/competitor_debug.log', date('Y-m-d H:i:s') . " - Payload: lat=$lat, lng=$lng, country=$country, dist=$distance, price=$siroPrice\n", FILE_APPEND);
|
||||
|
||||
if (!$lat || !$lng || !$country) {
|
||||
file_put_contents('/tmp/competitor_debug.log', date('Y-m-d H:i:s') . " - Error: Missing params\n", FILE_APPEND);
|
||||
echo json_encode(["status" => "error", "message" => "Missing parameters"]);
|
||||
exit;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user