mirror of
https://gitlab.com/t6353/sharee.bike.git
synced 2025-05-13 15:16:38 +02:00
voltage and privacy on register
This commit is contained in:
parent
f95f503bf6
commit
901c4c2a71
4 changed files with 44 additions and 7 deletions
|
@ -1076,7 +1076,7 @@ sub booking_update(){
|
|||
$dbt->update_record($dbh,$update_ct,$record_ct);
|
||||
if($q->param('voltage') && $q->param('voltage') =~ /(\d+)/){
|
||||
$update_cc->{int14} = $1;
|
||||
$self->service_automatic($q) if($1 <= 40);
|
||||
#$self->service_automatic($q) if($1 <= 40);
|
||||
}
|
||||
$update_cc->{txt15} = $q->escapeHTML($q->param('firmware')) if($q->param('firmware'));
|
||||
$update_cc->{txt17} = $Ilockit_GUID if($Ilockit_GUID);
|
||||
|
@ -1108,9 +1108,11 @@ sub booking_update(){
|
|||
mtime => "now()",
|
||||
owner => "$owner",
|
||||
};
|
||||
$update_cc->{int14} = $q->escapeHTML($q->param('voltage')) if($q->param('voltage'));
|
||||
|
||||
#my $record_cc = { c_id => $record_pos->{cc_id} };
|
||||
if($q->param('voltage') && $q->param('voltage') =~ /(\d+)/){
|
||||
$update_cc->{int14} = $1;
|
||||
$self->service_automatic($q) if($1 <= 40);
|
||||
}
|
||||
|
||||
my $update_pos = {
|
||||
table => "contenttranspos",
|
||||
|
@ -1295,8 +1297,10 @@ sub service_automatic {
|
|||
my $self = shift;
|
||||
my $q = shift || "";
|
||||
|
||||
my $station_id = $1 if($q->param('station') =~ /(\d+)/);
|
||||
my $bike_id = $1 if($q->param('bike') =~ /(\d+)/);
|
||||
my $station_id = "";
|
||||
my $bike_id = "";
|
||||
$station_id = $1 if($q->param('station') && $q->param('station') =~ /(\d+)/);
|
||||
$bike_id = $1 if($q->param('bike') && $q->param('bike') =~ /(\d+)/);
|
||||
my $authraw = { c_id => $owner };#default sys API
|
||||
my $lock_charge = "Achtung, Fahrradschloss Ladung unter " . $q->param('voltage') . "%";
|
||||
my $response = {};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue