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