fix unlink local and select local
This commit is contained in:
parent
ed4934ffdb
commit
cb60004b0e
|
@ -490,12 +490,12 @@ class ChangePass {
|
|||
class RespondeVinculo {
|
||||
Future<ApiCallResponse> call({
|
||||
String? tarefa = '',
|
||||
String? cliID = '',
|
||||
}) async {
|
||||
final baseUrl = PhpGroup.getBaseUrl();
|
||||
|
||||
final devUUID = StorageUtil().devUUID;
|
||||
final userUUID = StorageUtil().userUUID;
|
||||
final cliID = StorageUtil().cliUUID;
|
||||
|
||||
return ApiManager.instance.makeApiCall(
|
||||
callName: 'respondeVinculo',
|
||||
|
|
|
@ -110,8 +110,8 @@ class _BottomArrowLinkedLocalsComponentWidgetState
|
|||
|
||||
Future<dynamic> _fetchResponseLink(String status, String cliID) async {
|
||||
try {
|
||||
var response =
|
||||
await PhpGroup.resopndeVinculo.call(tarefa: status, cliID: cliID);
|
||||
StorageUtil().cliUUID = cliID;
|
||||
var response = await PhpGroup.resopndeVinculo.call(tarefa: status);
|
||||
|
||||
if (response.jsonBody['error'] == false) {
|
||||
return {
|
||||
|
@ -121,6 +121,7 @@ class _BottomArrowLinkedLocalsComponentWidgetState
|
|||
enText: "Link Activated Successfully")
|
||||
};
|
||||
} else {
|
||||
StorageUtil().cliUUID = '';
|
||||
return response.jsonBody;
|
||||
}
|
||||
} catch (e, s) {
|
||||
|
|
Loading…
Reference in New Issue