mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-29 16:55:05 +02:00
ent 9098 insert_gis_data
This commit is contained in:
parent
1e590728aa
commit
2262754eaf
@ -266,7 +266,7 @@ sub help_screen{
|
|||||||
sub api_call($$$;$$$$) {
|
sub api_call($$$;$$$$) {
|
||||||
my ($pa_config, $op, $op2, $id, $id2, $other, $return_type) = @_;
|
my ($pa_config, $op, $op2, $id, $id2, $other, $return_type) = @_;
|
||||||
my $content = undef;
|
my $content = undef;
|
||||||
|
|
||||||
eval {
|
eval {
|
||||||
# Set the parameters for the POST request.
|
# Set the parameters for the POST request.
|
||||||
my $params = {};
|
my $params = {};
|
||||||
@ -294,7 +294,7 @@ sub api_call($$$;$$$$) {
|
|||||||
$content = $response->decoded_content();
|
$content = $response->decoded_content();
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
return $content;
|
return $content;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -8054,7 +8054,7 @@ sub pandora_manage_main ($$$) {
|
|||||||
cli_get_gis_agent();
|
cli_get_gis_agent();
|
||||||
}
|
}
|
||||||
elsif ($param eq '--insert_gis_data'){
|
elsif ($param eq '--insert_gis_data'){
|
||||||
# param_check($ltotal, 4, 0);
|
param_check($ltotal, 4, 0);
|
||||||
cli_insert_gis_data();
|
cli_insert_gis_data();
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
@ -8805,4 +8805,4 @@ sub cli_insert_gis_data(){
|
|||||||
my $result = api_call(\%conf,'set', 'gis_agent_only_position', $agent_id, undef, "$other");
|
my $result = api_call(\%conf,'set', 'gis_agent_only_position', $agent_id, undef, "$other");
|
||||||
print "$result \n\n ";
|
print "$result \n\n ";
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user