25-11-18/1

This commit is contained in:
Hamza-Ayed
2025-11-18 10:38:11 +03:00
parent a69e4c6912
commit b1b8efdd7d
19 changed files with 294 additions and 199 deletions

View File

@@ -386,6 +386,7 @@ class LocationController extends GetxController {
final String driverId =
(box.read(BoxName.driverID) ?? '').toString().trim();
if (driverId.isEmpty) return; // لا ترسل بدون DriverID
final String deviceTimestamp = DateTime.now().toIso8601String();
// ✅ كل شيء Strings فقط
final Map<String, String> payload = {
@@ -398,6 +399,7 @@ class LocationController extends GetxController {
'distance': safeDistKm.toStringAsFixed(2),
'status': driverStatus,
'carType': (box.read(BoxName.carType) ?? 'default').toString(),
'device_timestamp': deviceTimestamp,
};
try {