Update: 2026-06-27 05:42:53
This commit is contained in:
@@ -558,7 +558,9 @@ class ScanDocumentsByApi extends GetxController {
|
||||
try {
|
||||
final decoded = jsonDecode(responseString);
|
||||
if (decoded['status'] == 'success' && decoded['message']['file_link'] != null) {
|
||||
box.write(BoxName.driverPhotoUrl, decoded['message']['file_link'].toString());
|
||||
String rawUrl = decoded['message']['file_link'].toString();
|
||||
String filename = rawUrl.split('/').last;
|
||||
box.write(BoxName.driverPhotoUrl, '${AppLink.server}/portrate_captain_image/$filename');
|
||||
}
|
||||
} catch (_) {}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user