12/26/1
This commit is contained in:
@@ -41,11 +41,17 @@ class LoginController extends GetxController {
|
||||
void adminDashboardOpen() async {
|
||||
if (formKeyAdmin.currentState!.validate()) {
|
||||
await DeviceInfoPlus.getDeviceInfo();
|
||||
print(DeviceInfoPlus.deviceData);
|
||||
if (DeviceInfoPlus.deviceData['model'] == 'Nokia 6.1 Plus') {
|
||||
Get.back();
|
||||
Get.to(() => AdminHomePage());
|
||||
}
|
||||
print(DeviceInfoPlus.deviceData['serialNumber']);
|
||||
var res = await CRUD().get(link: AppLink.getAdminUser, payload: {
|
||||
'device_number': DeviceInfoPlus.deviceData['serialNumber'].toString(),
|
||||
});
|
||||
var d = jsonDecode(res);
|
||||
// print(d);
|
||||
// if (DeviceInfoPlus.deviceData['serialNumber'] ==
|
||||
// d['message']['device_number']) {
|
||||
Get.back();
|
||||
Get.to(() => AdminHomePage());
|
||||
// }
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user