sigo api reserve and rental

This commit is contained in:
Rainer Gümpelein 2022-04-07 21:07:59 +02:00
parent 5870071d1b
commit 9c0e5f78e8
7 changed files with 444 additions and 68 deletions

View file

@ -747,7 +747,7 @@ sub save_transact(){
#online net bike booking
#Used by APP API
#deprecated, use apif->booking_request
sub net_booking(){
my $self = shift;
my $auth = shift;#API auth
@ -755,15 +755,12 @@ sub net_booking(){
my $owner = shift;
my $gps = shift || "";
my $c_id = $auth->{c_id};
my %varenv = $cf->envonline();
$bikeIDin =~ s/\s//g;
my $bikeID = $q->escapeHTML($bikeIDin) if($bikeIDin =~ /\d+$/);
my $db_bike = $bikeID;
$db_bike = $1 if($db_bike =~ /(\d+)/);
my %varenv = $cf->envonline();
my $ctf = $db->get_content1("contentuser",$dbt->{shareedms_conf}->{parent_id});
my $pos_id="";
my $return=0;
my $now_dt = strftime "%Y-%m-%d %H:%M", localtime;
@ -771,7 +768,7 @@ sub net_booking(){
my $response_state = "OK";
my $response_text = "";
$bw->log("net_booking booking_request bikeIDin $bikeIDin, authID $auth->{c_id}","","");
$bw->log("net_booking booking_request bikeIDin $bikeIDin, authID $auth->{c_id}",$bikeIDin,"");
my $ctadr = $db->get_contentrow("contentadr",$auth->{c_id});
@ -997,7 +994,8 @@ sub net_booking(){
}
return $return;
}
}#end net_booking
#Send sms after payable check and !int13
sub smsack(){