5/29/3
This commit is contained in:
@@ -7,9 +7,7 @@ import 'package:http/http.dart' as http;
|
||||
import 'package:SEFER/env/env.dart';
|
||||
|
||||
import '../../constant/api_key.dart';
|
||||
import '../../constant/colors.dart';
|
||||
import 'gemeni.dart';
|
||||
import 'llama_ai.dart';
|
||||
import 'upload_image.dart';
|
||||
|
||||
class CRUD {
|
||||
@@ -36,7 +34,7 @@ class CRUD {
|
||||
// print(response.body);
|
||||
var jsonData = jsonDecode(response.body);
|
||||
if (jsonData['status'] == 'success') {
|
||||
// print(jsonData);
|
||||
print(jsonData);
|
||||
|
||||
return response.body;
|
||||
}
|
||||
@@ -248,8 +246,8 @@ class CRUD {
|
||||
return response.body;
|
||||
} else {
|
||||
String errorMessage = jsonData['message'];
|
||||
Get.snackbar('Erroe'.tr, errorMessage.tr,
|
||||
backgroundColor: AppColor.redColor);
|
||||
// Get.snackbar('Error'.tr, errorMessage.tr,
|
||||
// backgroundColor: AppColor.redColor);
|
||||
print(errorMessage.tr);
|
||||
return (jsonData['status']);
|
||||
}
|
||||
|
||||
@@ -195,11 +195,11 @@ class AI extends GetxController {
|
||||
);
|
||||
} else {
|
||||
await addDriverEgypt();
|
||||
// await addRegistrationCarEgypt();
|
||||
await addRegistrationCarEgypt();
|
||||
|
||||
if (isCarSaved && isDriverSaved) {
|
||||
DeviceController().getDeviceSerialNumber();
|
||||
box.write(BoxName.phoneVerified, '1');
|
||||
box.write(BoxName.phoneVerified, 1);
|
||||
Get.offAll(() => HomeCaptain());
|
||||
// Get.offAll(() => HomeCaptain());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user