Commit 27a4bafa authored by Kulya's avatar Kulya 😊

Change InstallerEnd

parent 94bdb173
<?php namespace AloVoice; include("header.php"); ?> <?php namespace AloVoice; include("header.php"); ?>
<?php if($this->isAmi) { ?> <?php if($this->isAmi || $this->appInstalled) { ?>
<script src="//api.bitrix24.com/api/v1/"></script> <script src="//api.bitrix24.com/api/v1/"></script>
<script> BX24.init(function(){ BX24.installFinish(); location.href = '<?=$this->alvhost?>'; }); </script> <script> BX24.init(function(){ BX24.installFinish(); location.href = '<?=$this->alvhost?>'; }); </script>
<?php } else { ?> <?php } else { ?>
......
...@@ -12,6 +12,7 @@ class AloVoiceConnector ...@@ -12,6 +12,7 @@ class AloVoiceConnector
public $alvhost; public $alvhost;
public $configFile; public $configFile;
public $isAmi; public $isAmi;
public $appInstalled;
public $isAdmin; public $isAdmin;
public $alvagents; public $alvagents;
...@@ -26,6 +27,7 @@ class AloVoiceConnector ...@@ -26,6 +27,7 @@ class AloVoiceConnector
$this->settings = false; $this->settings = false;
$this->configs = $this->getConfigs(); $this->configs = $this->getConfigs();
$this->isAmi=false; $this->isAmi=false;
$this->appInstalled=false;
$this->isAdmin=false; $this->isAdmin=false;
$this->alvagents=[]; $this->alvagents=[];
} }
...@@ -268,6 +270,7 @@ class AloVoiceConnector ...@@ -268,6 +270,7 @@ class AloVoiceConnector
$isAmi = $alvAction->checkAmi(); $isAmi = $alvAction->checkAmi();
$this->isAmi = (!empty($isAmi)) ? true : false; $this->isAmi = (!empty($isAmi)) ? true : false;
} }
$this->appInstalled = true;
$this->goConfigurePage(); $this->goConfigurePage();
return true; return true;
} }
......
...@@ -129647,4 +129647,6 @@ arr: [] ...@@ -129647,4 +129647,6 @@ arr: []
------------------------ ------------------------
2021.11.30 18:44:20 - str:aTG: Sending TG message : [{"toid":"$02000000706066180000000000000000","message":"Rasx: 00405\/20208000200610740001 -> 00405\/Nachislennye %% \"TECHNOUNIT-GROUP\" MCHJ - 25 500.00 (00668 Pogashenie za Oper.Kass.Obsl.-25500.00, Ost: 15 430 104.00;"}] 2021.11.30 18:44:20 - str:aTG: Sending TG message : [{"toid":"$02000000706066180000000000000000","message":"Rasx: 00405\/20208000200610740001 -> 00405\/Nachislennye %% \"TECHNOUNIT-GROUP\" MCHJ - 25 500.00 (00668 Pogashenie za Oper.Kass.Obsl.-25500.00, Ost: 15 430 104.00;"}]
------------------------ ------------------------
2021.11.30 18:44:24 - str:aTG: Sending TG message : [{"toid":"$02000000706066180000000000000000","message":"Rasx: 00405\/20208000200610740001 -> 00405\/Nachislennye %% \"TECHNOUNIT-GROUP\" MCHJ - 300.00 (00668 Pogashenie za Oper.Kass.Obsl.-300.00 s su, Ost: 15 429 804.00;"}] 2021.11.30 18:44:24 - str:aTG: Sending TG message : [{"toid":"$02000000706066180000000000000000","message":"Rasx: 00405\/20208000200610740001 -> 00405\/Nachislennye %% \"TECHNOUNIT-GROUP\" MCHJ - 300.00 (00668 Pogashenie za Oper.Kass.Obsl.-300.00 s su, Ost: 15 429 804.00;"}]
\ No newline at end of file ------------------------
2021.11.30 21:06:23 - str:aTG: Sending TG message : [{"toid":"$02000000706066180000000000000000","message":"Rasx: 00405\/20208000200610740001 -> 00405\/Nachislennye %% \"TECHNOUNIT-GROUP\" MCHJ - 54 000.00 (00668 Abonentskaya plata za Bank Klient za n, Ost: 15 375 804.00;"}]
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment