mirror of
https://gitlab.com/t6353/sharee.bike.git
synced 2025-05-13 15:16:38 +02:00
some minor prepaid fixes
This commit is contained in:
parent
2dc53f4087
commit
f731aa352b
12 changed files with 53 additions and 32 deletions
|
@ -527,7 +527,11 @@ elsif($q->param('request') eq "bikes_available"){
|
|||
#2023-11-13, return also bikes_occupied on bikes_available by operator request
|
||||
if($user_agent_subversion >= 375 || $user_agent =~ /Mozilla/){#Mozilla for testing
|
||||
my $record = {};
|
||||
$record = $apif->user_bikes_occupied($dbh,$authraw,"");
|
||||
my $station = $q->escapeHTML($q->param('station')) || "";
|
||||
my $station_id = "";
|
||||
$station_id = $1 if($station =~ /(\d+)$/);
|
||||
|
||||
$record = $apif->user_bikes_occupied($dbh,$authraw,"",$station_id);
|
||||
$response->{bikes_occupied} = $apif->rentals(\%varenv,$record,$authraw,"1");#returns JSON rental values
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue