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
83d993bd
Commit
83d993bd
authored
Jan 26, 2022
by
Kulya
😊
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Test is Admin
parent
f338e9c4
Changes
4
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
71 additions
and
132 deletions
+71
-132
settings.php
template/settings.php
+4
-4
AloVoiceConnector.php
vendor/alovoice/src/AloVoiceConnector.php
+1
-0
AloVoiceHandle.php
vendor/alovoice/src/AloVoiceHandle.php
+13
-128
AloVoiceRest.php
vendor/alovoice/src/AloVoiceRest.php
+53
-0
No files found.
template/settings.php
View file @
83d993bd
...
...
@@ -97,7 +97,7 @@
</div>
</div>
<div
class=
"form-group row"
>
<
!--
div class="form-group row">
<div class="form-group ml-4">
<div class="form-check">
<label class="form-check-label" for="autocreateentity">Авто создание лида при вызове</label>
...
...
@@ -109,16 +109,16 @@
</select>
</div>
</div>
</div>
</div
--
>
<
!--
div class="form-group row">
<div
class=
"form-group row"
>
<div
class=
"form-group ml-4"
>
<div
class=
"form-check"
>
<input
class=
"form-check-input"
type=
"checkbox"
id=
"autocreatelead"
>
<label
class=
"form-check-label"
for=
"autocreatelead"
>
Авто создание лида при вызове
</label>
</div>
</div>
</div
--
>
</div>
<div
class=
"form-group row"
>
<div
class=
"form-group ml-4"
>
...
...
vendor/alovoice/src/AloVoiceConnector.php
View file @
83d993bd
...
...
@@ -1143,6 +1143,7 @@ class AloVoiceConnector
public
function
returnView
(){
$wrap
=
true
;
$req_is_admin
=
BxRest
::
call
(
"user.admin"
);
// var_dump($req_is_admin);
$this
->
isAdmin
=
(
$req_is_admin
[
"result"
]
==
"1"
)
?
true
:
false
;
$arResult
=
false
;
...
...
vendor/alovoice/src/AloVoiceHandle.php
View file @
83d993bd
This diff is collapsed.
Click to expand it.
vendor/alovoice/src/AloVoiceRest.php
View file @
83d993bd
...
...
@@ -283,6 +283,59 @@ class AloVoiceRest
]
);
// BX24.callMethod( 'imconnector.send.messages', {
// "LINE": 1,
// "CONNECTOR": "tgclient998944412860",
// "MESSAGES": [
// {
// 'user' : {
// 'id' : "124987160",
// 'name' : "Kulya_124987160",
// 'phone' : "998994412860",
// },
// 'message' : {
// 'id' : 2547263547265,
// 'date' : 1642485811,
// 'text' : "Пробнобное сообщение",
// },
// 'chat' : {
// 'id' : "124987160",
// 'name' : "Kulya_124987160",
// //'url' => htmlspecialchars($_SERVER['HTTP_REFERER']),
// },
// }
// ]
// },function(result){
// console.log(result);
// });
// BX24.callMethod( 'imconnector.send.messages', {
// "LINE": 1,
// "CONNECTOR": "tgclient998944412860",
// "MESSAGES": [
// {
// 'user' : {
// 'id' : "124987168",
// 'name' : "DANIIL NAGAY KAMILEVICH",
// },
// 'message' : {
// 'id' : 2547263547265,
// 'date' : 1642485911,
// 'text' : "Пробнобное сообщение",
// },
// 'chat' : {
// 'id' : "124987168",
// 'name' : "DANIIL NAGAY KAMILEVICH",
// //'url' => htmlspecialchars($_SERVER['HTTP_REFERER']),
// },
// }
// ]
// },function(result){
// console.log(result);
// });
// ALVC::eLog($result,"------ AloVoiceRest :: IncomMsg Bx RES ----------");
// ALVC::eLog($this->config["basedir"],"------ AloVoiceRest :: IncomMsg BaseDIR ----------");
...
...
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