mirror of
https://gitlab.com/t6353/sharee.bike.git
synced 2025-05-10 05:56:27 +02:00
sigo api reserve and rental
This commit is contained in:
parent
5870071d1b
commit
9c0e5f78e8
7 changed files with 444 additions and 68 deletions
|
@ -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(){
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue