25-11-18/1
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user