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 {
|
||||
|
||||
@@ -199,7 +199,7 @@ class DeviceHelper {
|
||||
|
||||
// Generate and return the encrypted fingerprint
|
||||
final String fingerprint = '${deviceId}_${deviceModel}_$osVersion';
|
||||
Log.print('fingerprint: ${fingerprint}');
|
||||
// Log.print('fingerprint: ${fingerprint}');
|
||||
// print(EncryptionHelper.instance.encryptData(fingerprint));
|
||||
return (fingerprint);
|
||||
} catch (e) {
|
||||
|
||||
Reference in New Issue
Block a user