Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
A
AmiBX
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
bitrix
AmiBX
Commits
4506f46f
Commit
4506f46f
authored
Dec 08, 2021
by
Kulya
😊
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Un Ignore Console Rest
parent
eee520c3
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
4 deletions
+11
-4
AloVoiceConnector.php
vendor/alovoice/src/AloVoiceConnector.php
+8
-3
AloVoiceRest.php
vendor/alovoice/src/AloVoiceRest.php
+3
-1
No files found.
vendor/alovoice/src/AloVoiceConnector.php
View file @
4506f46f
...
...
@@ -2706,6 +2706,7 @@ CFU=';
'agentProcessBxLeads'
=>
65
,
'checkListenerStatus'
=>
30
,
'agentsCheckDeletedUsersNumber'
=>
60
,
'billz_catalog_infos_synch'
=>
36000
,
];
...
...
@@ -2724,10 +2725,14 @@ CFU=';
}
public
function
billz_catalog_infos_synch
(){
self
::
alovoiceRestCmd
([
'restmethod'
=>
'billz_catalog_infos_synch'
]);
}
public
function
checkListenerStatus
(){
$statusRes
=
$this
->
_client
->
send
(
new
\PAMI\Message\Action\CoreStatusAction
);
$keys
=
$statusRes
->
getkeys
();
self
::
eLog
(
$keys
[
"response"
],
"--== *** ===== *** ==== check STATUS RES:"
,
"handler"
);
//
self::eLog($keys["response"],"--== *** ===== *** ==== check STATUS RES:", "handler");
}
public
function
agentsCheckDeletedUsersNumber
(){
...
...
@@ -2773,7 +2778,7 @@ CFU=';
if
(
empty
(
$p
)){
return
false
;
}
self
::
eLog
(
$p
,
"--== AlvREST PARAMS:"
);
//
self::eLog($p,"--== AlvREST PARAMS:");
$ch
=
curl_init
();
curl_setopt
(
$ch
,
CURLOPT_URL
,
'https://127.0.0.1/bx24/'
);
...
...
@@ -2789,7 +2794,7 @@ CFU=';
curl_setopt
(
$ch
,
CURLOPT_POSTFIELDS
,
http_build_query
(
$p
)
);
$body
=
curl_exec
(
$ch
);
self
::
eLog
(
$body
,
"--== AlvREST RES:"
);
//
self::eLog($body,"--== AlvREST RES:");
if
(
$body
===
false
){
$errors
=
curl_error
(
$ch
);
...
...
vendor/alovoice/src/AloVoiceRest.php
View file @
4506f46f
...
...
@@ -397,7 +397,9 @@ class AloVoiceRest
$arConf
=
self
::
get_billzconf
();
$arConf
[
"billz_productfields"
]
=
$arAllProperties
;
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
)
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment