mirror of
https://gitlab.com/t6353/sharee.bike.git
synced 2025-05-13 23:26:29 +02:00
cleanup merchant_id and Karte on OP
This commit is contained in:
parent
aff4b9d1e1
commit
0184300a35
12 changed files with 191 additions and 155 deletions
|
@ -445,7 +445,7 @@ elsif($q->param('request') eq "bikes_all"){
|
|||
|
||||
#on servicetool only stations on user_tour
|
||||
my $stations_allraw = {};
|
||||
(my $stations_not_used,$stations_allraw) = $apif->stations_all($q,"",$authraw) if($q->param('authcookie') =~ /_cleeJet3$|_34567890$/);
|
||||
(my $stations_not_used,$stations_allraw) = $apif->stations_all($q,"",$authraw) if($owner && $owner eq "187");#shareetool
|
||||
|
||||
my ($bikes_all,$bikes_allraw,$bikes_on_station) = $apif->bikes_all($q,$authraw,$stations_allraw);
|
||||
|
||||
|
@ -455,7 +455,8 @@ elsif($q->param('request') eq "bikes_all"){
|
|||
my $pos_record = {};
|
||||
my $response_work = {};
|
||||
|
||||
if($q->param('authcookie') =~ /cleeJet3|34567890$/){
|
||||
#shareetool
|
||||
if($owner && $owner eq "187"){
|
||||
(my $xresponse, $pos_record, my $node_template, my $crecord) = $apif->service_select($q,$authraw,"",$interval);
|
||||
|
||||
($response_work, my $node) = $apif->service_work($pos_record,$bikes_allraw,"",$node_template);
|
||||
|
@ -479,8 +480,8 @@ elsif($q->param('request') eq "bikes_all"){
|
|||
|
||||
#print "bid:$bid|$bikes_allraw->{$bid}->{mtime}\n";
|
||||
|
||||
#disabled, needs also to much cpu-time
|
||||
#if(ref($response_work->{$biselect}) ne "HASH" || $response_work->{$biselect}->{int01}->{c_id} !~ /\d/ && $q->param('authcookie') =~ /cleeJet3|34567890$/){
|
||||
#shareetool disabled, needs also to much cpu-time
|
||||
#if(ref($response_work->{$biselect}) ne "HASH" || $response_work->{$biselect}->{int01}->{c_id} !~ /\d/ && $owner && $owner eq "187"){
|
||||
# my $pos_record_bi = $apif->service_work_select($biselect,"","");
|
||||
# (my $response_work_bi, my $node) = $apif->service_work($pos_record_bi,$bikes_allraw);
|
||||
# $response_work->{$biselect} = $response_work_bi->{$biselect};
|
||||
|
@ -488,7 +489,7 @@ elsif($q->param('request') eq "bikes_all"){
|
|||
#}
|
||||
|
||||
#2019-02-14, fixed
|
||||
if(ref($response_work->{$biselect}) eq "HASH" && $q->param('authcookie') =~ /cleeJet3|34567890$/){
|
||||
if(ref($response_work->{$biselect}) eq "HASH" && $owner && $owner eq "187"){#shareetool
|
||||
#print "$biselect: $response_work->{$biselect}->{mtime}\n";
|
||||
$bikes_allraw->{$bid}->{service_state_exist} = 1;
|
||||
|
||||
|
@ -570,14 +571,6 @@ elsif($q->param('request') eq "bikes_all"){
|
|||
}
|
||||
}
|
||||
|
||||
#print "all:$i\n";
|
||||
|
||||
#if($q->param('authcookie') =~ /_cleeJet3$|_34567890$/){
|
||||
# $bw->log("on bikes_all: kmlGenerator","","");
|
||||
#require "Mod/KMLout.pm";
|
||||
#my $kmlfile = Mod::KMLout::kmlGenerator("","");
|
||||
#}
|
||||
|
||||
$bw->log("service_state_debug",$service_state_debug,"");
|
||||
$response->{bikes} = $bikes_all;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue