Commit 4506f46f authored by Kulya's avatar Kulya 😊

Un Ignore Console Rest

parent eee520c3
...@@ -2706,6 +2706,7 @@ CFU='; ...@@ -2706,6 +2706,7 @@ CFU=';
'agentProcessBxLeads' => 65, 'agentProcessBxLeads' => 65,
'checkListenerStatus' => 30, 'checkListenerStatus' => 30,
'agentsCheckDeletedUsersNumber' => 60, 'agentsCheckDeletedUsersNumber' => 60,
'billz_catalog_infos_synch' => 36000,
]; ];
...@@ -2724,10 +2725,14 @@ CFU='; ...@@ -2724,10 +2725,14 @@ CFU=';
} }
public function billz_catalog_infos_synch(){
self::alovoiceRestCmd([ 'restmethod' => 'billz_catalog_infos_synch' ]);
}
public function checkListenerStatus(){ public function checkListenerStatus(){
$statusRes = $this->_client->send(new \PAMI\Message\Action\CoreStatusAction); $statusRes = $this->_client->send(new \PAMI\Message\Action\CoreStatusAction);
$keys = $statusRes->getkeys(); $keys = $statusRes->getkeys();
self::eLog($keys["response"],"--== *** ===== *** ==== check STATUS RES:", "handler"); // self::eLog($keys["response"],"--== *** ===== *** ==== check STATUS RES:", "handler");
} }
public function agentsCheckDeletedUsersNumber(){ public function agentsCheckDeletedUsersNumber(){
...@@ -2773,7 +2778,7 @@ CFU='; ...@@ -2773,7 +2778,7 @@ CFU=';
if(empty($p)){ return false; } if(empty($p)){ return false; }
self::eLog($p,"--== AlvREST PARAMS:"); // self::eLog($p,"--== AlvREST PARAMS:");
$ch = curl_init(); $ch = curl_init();
curl_setopt($ch, CURLOPT_URL, 'https://127.0.0.1/bx24/'); curl_setopt($ch, CURLOPT_URL, 'https://127.0.0.1/bx24/');
...@@ -2789,7 +2794,7 @@ CFU='; ...@@ -2789,7 +2794,7 @@ CFU=';
curl_setopt($ch, CURLOPT_POSTFIELDS, http_build_query($p) ); curl_setopt($ch, CURLOPT_POSTFIELDS, http_build_query($p) );
$body = curl_exec($ch); $body = curl_exec($ch);
self::eLog($body,"--== AlvREST RES:"); // self::eLog($body,"--== AlvREST RES:");
if($body === false){ if($body === false){
$errors = curl_error($ch); $errors = curl_error($ch);
......
...@@ -397,7 +397,9 @@ class AloVoiceRest ...@@ -397,7 +397,9 @@ class AloVoiceRest
$arConf = self::get_billzconf(); $arConf = self::get_billzconf();
$arConf["billz_productfields"] = $arAllProperties; $arConf["billz_productfields"] = $arAllProperties;
self::save_billzconf(["conf"=>$arConf]); self::save_billzconf(["conf"=>$arConf]);
return ["count" => $totalCnt, "billzprops"=>$arAllProperties, "alltime"=>$alltime];
$return = ["count" => $totalCnt, "billzprops"=>count($arAllProperties), "alltime"=>$alltime];
ALVC::eLog($return,"------ AloVoiceRest :: billz_catalog_infos_synch CRON Done!");
} }
private function billz_load_product($r=false) { private function billz_load_product($r=false) {
......
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