Update: 2026-06-24 16:08:47

This commit is contained in:
Hamza-Ayed
2026-06-24 16:08:47 +03:00
parent 4894d566a0
commit 89dca66892
2 changed files with 17 additions and 7 deletions

View File

@@ -51,6 +51,9 @@ if ($_SERVER['REQUEST_METHOD'] === 'OPTIONS') {
// 2. Autoload // 2. Autoload
$vendorPath = realpath(__DIR__ . '/../../vendor/autoload.php'); $vendorPath = realpath(__DIR__ . '/../../vendor/autoload.php');
if (!$vendorPath) {
$vendorPath = realpath(__DIR__ . '/../vendor/autoload.php');
}
if ($vendorPath) require_once $vendorPath; if ($vendorPath) require_once $vendorPath;
// 3. Helpers & Env // 3. Helpers & Env

View File

@@ -303,13 +303,20 @@ class LocationSearchController extends GetxController {
rideLifecycle.resetNoRideSearch(); rideLifecycle.resetNoRideSearch();
} }
try { final bool isLoggedIn = box.read(BoxName.isVerified) == '1' &&
getReverseGeocoding(passengerLocation).then((address) { box.read(BoxName.passengerID) != null;
currentLocationString = address;
update(); if (isLoggedIn) {
}); try {
} catch (e) { getReverseGeocoding(passengerLocation).then((address) {
Log.print('Error resolving current location: $e'); currentLocationString = address;
update();
});
} catch (e) {
Log.print('Error resolving current location: $e');
}
} else {
Log.print('LocationSearchController: Skipping reverse geocoding call, user not logged in.');
} }
OfflineMapService.instance OfflineMapService.instance