Update: 2026-06-25 02:55:24

This commit is contained in:
Hamza-Ayed
2026-06-25 02:55:24 +03:00
parent 98a8a2ae3d
commit 85e85fe4d3
11 changed files with 62 additions and 86 deletions

View File

@@ -479,9 +479,10 @@ class AI extends GetxController {
bool isLoadingVehicleFrontSy = false;
bool isLoadingVehicleBackSy = false;
Future<void> sendToAI(String type, {required File imageFile}) async {
final _jwt = box.read(BoxName.jwt);
final String _token = _jwt != null ? r(_jwt).split(AppInformation.addd)[0] : '';
final headers = {
'Authorization':
'Bearer ${r(box.read(BoxName.jwt)).split(AppInformation.addd)[0]}',
'Authorization': 'Bearer $_token',
'X-HMAC-Auth': '${box.read(BoxName.hmac)}',
};
final driverID = box.read(BoxName.driverID) ?? 'eddfdfdgfd';