Update: 2026-06-24 16:08:47
This commit is contained in:
@@ -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
|
||||||
|
|||||||
@@ -303,6 +303,10 @@ class LocationSearchController extends GetxController {
|
|||||||
rideLifecycle.resetNoRideSearch();
|
rideLifecycle.resetNoRideSearch();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
final bool isLoggedIn = box.read(BoxName.isVerified) == '1' &&
|
||||||
|
box.read(BoxName.passengerID) != null;
|
||||||
|
|
||||||
|
if (isLoggedIn) {
|
||||||
try {
|
try {
|
||||||
getReverseGeocoding(passengerLocation).then((address) {
|
getReverseGeocoding(passengerLocation).then((address) {
|
||||||
currentLocationString = address;
|
currentLocationString = address;
|
||||||
@@ -311,6 +315,9 @@ class LocationSearchController extends GetxController {
|
|||||||
} catch (e) {
|
} catch (e) {
|
||||||
Log.print('Error resolving current location: $e');
|
Log.print('Error resolving current location: $e');
|
||||||
}
|
}
|
||||||
|
} else {
|
||||||
|
Log.print('LocationSearchController: Skipping reverse geocoding call, user not logged in.');
|
||||||
|
}
|
||||||
|
|
||||||
OfflineMapService.instance
|
OfflineMapService.instance
|
||||||
.downloadRegion(passengerLocation, radiusKm: 10.0);
|
.downloadRegion(passengerLocation, radiusKm: 10.0);
|
||||||
|
|||||||
Reference in New Issue
Block a user