Update: 2026-06-27 05:53:15
This commit is contained in:
@@ -288,10 +288,12 @@ class CRUD {
|
||||
}
|
||||
}
|
||||
return 'token_expired';
|
||||
} else {
|
||||
} else if (response.statusCode >= 500) {
|
||||
addError('Non-200: ${response.statusCode}', 'crud().get - Other',
|
||||
url.toString());
|
||||
return 'failure';
|
||||
} else {
|
||||
return 'failure';
|
||||
}
|
||||
} on TimeoutException {
|
||||
return 'failure';
|
||||
@@ -361,10 +363,12 @@ class CRUD {
|
||||
addError('Unauthorized: ${jsonData['error']}', 'crud().getWallet - 401',
|
||||
url.toString());
|
||||
return 'failure';
|
||||
} else {
|
||||
} else if (response.statusCode >= 500) {
|
||||
addError('Non-200: ${response.statusCode}', 'crud().getWallet - Other',
|
||||
url.toString());
|
||||
return 'failure';
|
||||
} else {
|
||||
return 'failure';
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -169,6 +169,12 @@ void showUpdateDialog(BuildContext context) {
|
||||
class DeviceHelper {
|
||||
static Future<String> getDeviceFingerprint() async {
|
||||
await EncryptionHelper.initialize();
|
||||
|
||||
final cached = box.read(BoxName.deviceFingerprint);
|
||||
if (cached != null && cached.toString().isNotEmpty) {
|
||||
return cached.toString();
|
||||
}
|
||||
|
||||
final DeviceInfoPlugin deviceInfoPlugin = DeviceInfoPlugin();
|
||||
var deviceData;
|
||||
|
||||
@@ -191,7 +197,7 @@ class DeviceHelper {
|
||||
|
||||
final String fingerprint =
|
||||
EncryptionHelper.instance.encryptData('${deviceId}_$deviceModel');
|
||||
|
||||
|
||||
box.write(BoxName.deviceFingerprint, fingerprint);
|
||||
return (fingerprint);
|
||||
} catch (e) {
|
||||
|
||||
@@ -2860,7 +2860,7 @@ class MapDriverController extends GetxController
|
||||
polyLines.removeWhere(
|
||||
(p) => p.polylineId.value.startsWith('passenger_walk_line'));
|
||||
|
||||
if (!isRideStarted &&
|
||||
if (!isRideStarted && isArrivedSend &&
|
||||
upcomingPathPoints.isNotEmpty &&
|
||||
latLngPassengerLocation.latitude != 0) {
|
||||
final LatLng lastRoadPt = upcomingPathPoints.last;
|
||||
|
||||
Reference in New Issue
Block a user