update for user group
This commit is contained in:
@ -41,7 +41,8 @@ class LocationService{
|
||||
|
||||
if(cat.isNotEmpty){
|
||||
if(indexController.currentUser.length > 0){
|
||||
url = '${server_url}/api/inperf/?rog=True&perf=' + perfecture + '&cat=' + cat;
|
||||
var grp = indexController.currentUser[0]["group"];
|
||||
url = '${server_url}/api/inperf/?rog=True&perf=' + perfecture + '&cat=' + cat + "&grp=${grp}";
|
||||
}
|
||||
else {
|
||||
url = '${server_url}/api/inperf/?perf=' + perfecture + '&cat=' + cat;
|
||||
@ -49,7 +50,8 @@ class LocationService{
|
||||
}
|
||||
else{
|
||||
if(indexController.currentUser.length > 0){
|
||||
url = '${server_url}/api/inperf/?rog=True&perf=' + perfecture;
|
||||
var grp = indexController.currentUser[0]["group"];
|
||||
url = '${server_url}/api/inperf/?rog=True&perf=' + perfecture + "&grp=${grp}";
|
||||
}
|
||||
else {
|
||||
url = '${server_url}/api/inperf/?perf=' + perfecture;
|
||||
@ -77,7 +79,8 @@ class LocationService{
|
||||
String server_url = ConstValues.currentServer();
|
||||
if(cat.isNotEmpty){
|
||||
if(indexController.currentUser.length > 0){
|
||||
url = '${server_url}/api/insubperf?rog=True&subperf=' + subperfecture + '&cat=' + cat;
|
||||
var grp = indexController.currentUser[0]["group"];
|
||||
url = '${server_url}/api/insubperf?rog=True&subperf=' + subperfecture + '&cat=' + cat + "&grp=${grp}";
|
||||
}
|
||||
else{
|
||||
url = '${server_url}/api/insubperf?subperf=' + subperfecture + '&cat=' + cat;
|
||||
@ -85,7 +88,8 @@ class LocationService{
|
||||
}
|
||||
else{
|
||||
if(indexController.currentUser.length > 0){
|
||||
url = '${server_url}/api/insubperf?rog=True&subperf=' + subperfecture;
|
||||
var grp = indexController.currentUser[0]["group"];
|
||||
url = '${server_url}/api/insubperf?rog=True&subperf=' + subperfecture + "&grp=${grp}";
|
||||
}
|
||||
else{
|
||||
url = '${server_url}/api/insubperf?subperf=' + subperfecture;
|
||||
@ -113,7 +117,8 @@ class LocationService{
|
||||
String server_url = ConstValues.currentServer();
|
||||
if(cat.isNotEmpty){
|
||||
if(indexController.currentUser.length > 0){
|
||||
url = '${server_url}/api/inbound?rog=True&ln1=${lon1}&la1=${lat1}&ln2=${lon2}&la2=${lat2}&ln3=${lon3}&la3=${lat3}&ln4=${lon4}&la4=${lat4}' + '&cat=' + cat;
|
||||
var grp = indexController.currentUser[0]["group"];
|
||||
url = '${server_url}/api/inbound?rog=True&ln1=${lon1}&la1=${lat1}&ln2=${lon2}&la2=${lat2}&ln3=${lon3}&la3=${lat3}&ln4=${lon4}&la4=${lat4}' + '&cat=' + cat + "&grp=${grp}";
|
||||
}
|
||||
else{
|
||||
url = '${server_url}/api/inbound?ln1=${lon1}&la1=${lat1}&ln2=${lon2}&la2=${lat2}&ln3=${lon3}&la3=${lat3}&ln4=${lon4}&la4=${lat4}' + '&cat=' + cat;
|
||||
@ -121,7 +126,8 @@ class LocationService{
|
||||
}
|
||||
else{
|
||||
if(indexController.currentUser.length > 0){
|
||||
url = '${server_url}/api/inbound?rog=True&ln1=${lon1}&la1=${lat1}&ln2=${lon2}&la2=${lat2}&ln3=${lon3}&la3=${lat3}&ln4=${lon4}&la4=${lat4}';
|
||||
var grp = indexController.currentUser[0]["group"];
|
||||
url = '${server_url}/api/inbound?rog=True&ln1=${lon1}&la1=${lat1}&ln2=${lon2}&la2=${lat2}&ln3=${lon3}&la3=${lat3}&ln4=${lon4}&la4=${lat4}' + '&grp=${grp}';
|
||||
}
|
||||
else{
|
||||
url = '${server_url}/api/inbound?ln1=${lon1}&la1=${lat1}&ln2=${lon2}&la2=${lat2}&ln3=${lon3}&la3=${lat3}&ln4=${lon4}&la4=${lat4}';
|
||||
@ -161,7 +167,8 @@ class LocationService{
|
||||
print("loadCustomLocations url is ----- ${cat}");
|
||||
if(cat.isNotEmpty){
|
||||
if(indexController.currentUser.length > 0){
|
||||
url = '${server_url}/api/custom_area/?rog=True&&cat=' + cat;
|
||||
var grp = indexController.currentUser[0]["group"];
|
||||
url = '${server_url}/api/custom_area/?rog=True&&cat=' + cat + "&grp=${grp}";
|
||||
}
|
||||
else{
|
||||
url = '${server_url}/api/custom_area/?&cat=' + cat;
|
||||
@ -169,10 +176,11 @@ class LocationService{
|
||||
}
|
||||
else{
|
||||
if(indexController.currentUser.length > 0){
|
||||
url = '${server_url}/api/customarea?rog=True&name=${name}&';
|
||||
var grp = indexController.currentUser[0]["group"];
|
||||
url = '${server_url}/api/customarea?rog=True&name=${name}' + "&grp=${grp}";
|
||||
}
|
||||
else{
|
||||
url = '${server_url}/api/customarea?name=${name}&';
|
||||
url = '${server_url}/api/customarea?name=${name}';
|
||||
}
|
||||
}
|
||||
print("----loadCustomLocations url --- ${url}");
|
||||
|
||||
Reference in New Issue
Block a user