mirror of
https://gitlab.com/t6353/sharee.bike.git
synced 2025-05-13 15:16:38 +02:00
App merchant-message
This commit is contained in:
parent
9da4bd0cb0
commit
75a23dc3f4
5 changed files with 40 additions and 30 deletions
|
@ -381,7 +381,7 @@ sub service_select {
|
|||
$pos_record->{1}->{template_id} = $node_template->{template_id};
|
||||
}
|
||||
|
||||
$bw->log("service_select with node_template: $node_template->{template_id} and pos_record:",$pos_record,"");
|
||||
$bw->log("service_select with node_template: $node_template->{template_id} and pos_record:","","");
|
||||
}
|
||||
|
||||
return ($return,$pos_record,$node_template,$crecord);
|
||||
|
@ -1123,8 +1123,6 @@ sub booking_update(){
|
|||
my $record_cc = { c_id => 0 };
|
||||
$record_cc = $dbt->fetch_record($dbh,$pref_cc) if($q->param('bike'));
|
||||
|
||||
$bw->log("booking_update bike to state $bike | $state | $lock_state, auth:$auth->{c_id}",$auth->{c_id},"");
|
||||
|
||||
my $update_cc = {
|
||||
table => "content",
|
||||
mtime => "now()",
|
||||
|
@ -1156,6 +1154,8 @@ sub booking_update(){
|
|||
$gps_data->{gps} = "$gps_data->{latitude},$gps_data->{longitude}" if($gps_data->{latitude} && $gps_data->{longitude});
|
||||
}
|
||||
|
||||
$bw->log("booking_update bike to state $bike | $state | $lock_state, auth:$auth->{c_id}, gps:$gps_data->{gps}",$auth->{c_id},"");
|
||||
|
||||
my $Ilockit_GUID = "";
|
||||
$Ilockit_GUID = $q->escapeHTML($q->param('Ilockit_GUID')) if($q->param('Ilockit_GUID') && $q->param('Ilockit_GUID') =~ /\w+-\w+-\w+-\w+$/);
|
||||
#$update_pos->{txt17} = $Ilockit_GUID if($Ilockit_GUID);
|
||||
|
@ -2540,7 +2540,7 @@ sub fetch_tariff(){
|
|||
if($cachme eq "public"){
|
||||
$tariff->{int18} = 2;
|
||||
$tariff_all = $dbt->fetch_record($dbh,$tariff);
|
||||
$bw->log("$dbname $cachme Tariff type for No operator registered user by int18:$tariff->{int18} select 1:",$tariff_all,"");
|
||||
$bw->log("$dbname $cachme Tariff type for No operator registered user by int18:$tariff->{int18} select 1:",$tariff->{barcode},"");
|
||||
}
|
||||
elsif(looks_like_number($cachme) && $cachme > 0){
|
||||
$tariff->{barcode} = $cachme;
|
||||
|
@ -2552,13 +2552,13 @@ sub fetch_tariff(){
|
|||
}else{
|
||||
$auth_operator = { txt30 => "$cachme" };
|
||||
}
|
||||
$bw->log("$dbname $cachme Tariff type for No operator registered user by barcode:$tariff->{barcode} OR int18: $tariff->{int18} select 2:",$tariff_all,"");
|
||||
$bw->log("$dbname $cachme Tariff type for No operator registered user by barcode:$tariff->{barcode} OR int18: $tariff->{int18} select 2:",$tariff->{barcode},"");
|
||||
}
|
||||
#if no primary address then only 2=public
|
||||
elsif((ref($adr) ne "HASH" || !$adr->{c_id}) && ($dbname ne "sharee_lv")){
|
||||
$tariff->{int18} = 2;
|
||||
$tariff_all = $dbt->fetch_record($dbh,$tariff);
|
||||
$bw->log("$dbname Tariff type for No operator registered user by int18:$tariff->{int18} select 3:",$tariff_all,"");
|
||||
$bw->log("$dbname Tariff type for No operator registered user by int18:$tariff->{int18} select 3:",$tariff->{barcode},"");
|
||||
}
|
||||
#select operators address to get users tarifnr array in txt30
|
||||
elsif(ref($adr) eq "HASH" && $adr->{c_id}){
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue