mirror of
https://gitlab.com/t6353/sharee.bike.git
synced 2025-07-12 00:16:26 +02:00
sig without reserve fix
This commit is contained in:
parent
c7726be759
commit
c5dbb5bff6
6 changed files with 23 additions and 12 deletions
|
@ -6,7 +6,7 @@
|
|||
#On this forking script, nothing will saved on script, else by execute APIsigclient methodes
|
||||
#
|
||||
# command line syntax
|
||||
# sudo su www-data -c "./src/scripts/sig_client.pl shareeapp-sx 'todo' 'user_id' 'bike_id' 'pos_id'"
|
||||
# sudo su www-data -c "./src/scripts/sig_client.pl shareeapp-sx 'todo' 'user_id' 'sig bikeId' 'pos_id'"
|
||||
#
|
||||
# sudo su www-data -c "./src/scripts/sig_client.pl shareeapp-sx bikes_available"
|
||||
#
|
||||
|
@ -41,11 +41,11 @@ my $dbh = "";
|
|||
|
||||
my $todo = $ARGV[1] || "";
|
||||
my $user_id = $ARGV[2] || "";
|
||||
my $bike_id = $ARGV[3] || "";
|
||||
my $pos_id = $ARGV[4] || "";
|
||||
my $bike_id = $ARGV[3] || "";#from content.txt22
|
||||
my $pos_id = $ARGV[4] || "";#from contenttranspos.c_id
|
||||
|
||||
open(FILE,">>$varenv{logdir}/APIsigclient.log");
|
||||
print FILE "\n*** $now_dt 'sig_client fork with todo:$todo|user_id:$user_id|pos_id:$pos_id' \n";
|
||||
print FILE "\n1. *** $now_dt 'sig_client fork with todo:$todo|user_id:$user_id|bike_id:$bike_id|pos_id:$pos_id' \n";
|
||||
|
||||
#get user and bike in copri by id
|
||||
my $apref = {
|
||||
|
@ -101,7 +101,7 @@ elsif($todo eq "reserve"){
|
|||
}
|
||||
|
||||
#live! Fork rental request with bike "id"
|
||||
elsif($todo eq "rental" && $ctadr->{c_id} > 0 && $ctpos->{txt22}){
|
||||
elsif($todo eq "rental" && $ctadr->{c_id} > 0){
|
||||
#$ctadr = { c_id => 1842 };
|
||||
#$ct_bike = { txt22 => "380116b5-0522-43da-ab66-477744a731a3" };
|
||||
my $return = $si->sig_booking(\%varenv,$todo,$ctadr,$ct_bike,$ctpos);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue