mirror of
https://gitlab.com/t6353/sharee.bike.git
synced 2025-07-17 18:27:27 +02:00
service new_task and style conf refactoring
This commit is contained in:
parent
14d1891695
commit
8607a42e34
18 changed files with 54 additions and 92 deletions
|
@ -426,6 +426,14 @@ sub get_positions {
|
|||
|
||||
my $c_id = $dbt->insert_contentoid($dbh,$insert);
|
||||
print FILE "insert sub get_positions:" . Dumper($insert);
|
||||
|
||||
#theft mailing
|
||||
if($theftmove_count > $dbt->{copri_conf}->{theftalarm}->{move_count} && $resp->{speed} $dbt->{copri_conf}->{theftalarm}->{speed} && $resp->{attributes}->{distance} > $dbt->{copri_conf}->{theftalarm}->{meter}){
|
||||
#send mail
|
||||
#system("$varenv{basedir}/src/scripts/mailTransportcms.pl '$varenv->{syshost}' 'send_alarm2hotline' '' ''");
|
||||
print FILE "send_alarm2hotline, condition: $theftmove_count > $dbt->{copri_conf}->{theftalarm}->{move_count} && $resp->{speed} $dbt->{copri_conf}->{theftalarm}->{speed} && $resp->{attributes}->{distance} > $dbt->{copri_conf}->{theftalarm}->{meter}\n";
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -169,10 +169,12 @@ sub get_tripsum {
|
|||
if(1==1){
|
||||
my $update_pos = {
|
||||
table => "contenttranspos",
|
||||
owner => $owner,
|
||||
mtime => "now()",
|
||||
int26 => 0,
|
||||
};
|
||||
#disabled to keep real rental owner id
|
||||
#owner => $owner,
|
||||
#mtime => "now()",
|
||||
|
||||
foreach my $resp (@{ $response_in }) {
|
||||
if($ctpos->{int13} eq $resp->{deviceId}){
|
||||
print FILE "device Id: $resp->{deviceId}" . "\n";
|
||||
|
|
1
copri4/main/src/scripts/mailTransportcms.pl
Symbolic link
1
copri4/main/src/scripts/mailTransportcms.pl
Symbolic link
|
@ -0,0 +1 @@
|
|||
../../../../../sharee.bike/copri-bike/main/src/scripts/mailTransportcms.pl
|
Loading…
Add table
Add a link
Reference in a new issue