mirror of
https://gitlab.com/t6353/sharee.bike.git
synced 2025-05-13 23:26:29 +02:00
statistik without service tour user
This commit is contained in:
parent
f6668094fd
commit
9190b2353c
2 changed files with 4 additions and 6 deletions
|
@ -1582,17 +1582,12 @@ sub bikes_all(){
|
|||
my $stations = "";
|
||||
if(ref($stations_allraw) eq "HASH" && scalar(@{$user_tour} >= 1)){
|
||||
foreach my $id (sort { $stations_allraw->{$a}->{int04} <=> $stations_allraw->{$b}->{int04} } keys (%$stations_allraw)){
|
||||
#push(@stations_service_tour, $stations_allraw->{$id}->{int04}) if($stations_allraw->{$id}->{int04} > 0);
|
||||
push(@stations_service_tour, $stations_allraw->{$id}->{int04}) if(looks_like_number($stations_allraw->{$id}->{int04}));
|
||||
}
|
||||
$stations = join(",",@stations_service_tour);
|
||||
$stations =~ s/[a-z_]+//ig;
|
||||
$pref->{int04} = "IN::($stations)" if($stations || $stations eq "0");
|
||||
}
|
||||
#bikes_all only if authenticated
|
||||
#}else{
|
||||
# $bw->log("sub bikes_all",$pref,"");
|
||||
# $record = $dbt->fetch_record($dbh,$pref) if(ref($bike_group) eq "ARRAY" && @{$bike_group}[0]);
|
||||
}
|
||||
|
||||
$bw->log("sub bikes_all with user_tour ($station_id) @stations_service_tour",$pref,"");
|
||||
|
@ -1620,7 +1615,6 @@ sub bikes_all(){
|
|||
$return->{$id}->{Ilockit_GUID} = "$record->{$id}->{txt17}";
|
||||
$return->{$id}->{Ilockit_ID} = "$record->{$id}->{txt18}";
|
||||
$return->{$id}->{bike_group} = ["$dbt->{operator}->{$varenv->{dbname}}->{oprefix}$record->{$id}->{main_id}"];
|
||||
#if($users_serviceapp->{int09}){
|
||||
#shareetool
|
||||
if($q->param('authcookie') && $dbt->{merchant_ids}->{$varenv->{merchant_id}}->{id} && $dbt->{merchant_ids}->{$varenv->{merchant_id}}->{id} == 187 && scalar(@{$user_tour} >= 1)){
|
||||
my @service_code = split(/\s/,$record->{$id}->{txt23});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue