25-1/28/1

This commit is contained in:
Hamza-Ayed
2025-01-28 01:03:04 +03:00
parent 46709df1e6
commit 9b0650b118
84 changed files with 416 additions and 830 deletions

View File

@@ -401,18 +401,18 @@ class MapDriverController extends GetxController {
// Get.find<HomeCaptainController>().update();
update();
await CRUD().post(link: AppLink.updateRides, payload: {
'id': encryptionHelper.encryptData(rideId),
'id': (rideId),
'rideTimeStart': DateTime.now().toString(),
'status': 'Begin',
});
CRUD().post(link: AppLink.addDriverOrder, payload: {
'driver_id': box.read(BoxName.driverID).toString(),
'order_id': encryptionHelper.encryptData(rideId).toString(),
'order_id': (rideId).toString(),
'status': 'Begin'
});
if (AppLink.endPoint != AppLink.seferCairoServer) {
CRUD().post(link: "${AppLink.endPoint}/rides/update.php", payload: {
'id': encryptionHelper.encryptData(rideId),
'id': (rideId),
'rideTimeStart': DateTime.now().toString(),
'status': 'Begin',
});
@@ -420,7 +420,7 @@ class MapDriverController extends GetxController {
link: '${AppLink.endPoint}/rides/driver_order/add.php',
payload: {
'driver_id': box.read(BoxName.driverID).toString(),
'order_id': encryptionHelper.encryptData(rideId).toString(),
'order_id': (rideId).toString(),
'status': 'Begin'
});
}
@@ -492,7 +492,7 @@ class MapDriverController extends GetxController {
Get.put(LocationController());
var res = await CRUD().get(
link: AppLink.getLatestLocationPassenger,
payload: {'rideId': encryptionHelper.encryptData(rideId)});
payload: {'rideId': (rideId)});
if (res != 'failure') {
var passengerLatestLocationString = jsonDecode(res)['message'];