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
4158737c
Commit
4158737c
authored
Dec 13, 2021
by
Kulya
😊
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Order creat func 9
parent
5b63eb90
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
1 deletion
+8
-1
AloVoiceConnector.php
vendor/alovoice/src/AloVoiceConnector.php
+4
-0
AloVoiceRest.php
vendor/alovoice/src/AloVoiceRest.php
+3
-1
BillzRest.php
vendor/alovoice/src/BillzRest.php
+1
-0
No files found.
vendor/alovoice/src/AloVoiceConnector.php
View file @
4158737c
...
@@ -2707,6 +2707,7 @@ CFU=';
...
@@ -2707,6 +2707,7 @@ CFU=';
'checkListenerStatus'
=>
30
,
'checkListenerStatus'
=>
30
,
'agentsCheckDeletedUsersNumber'
=>
60
,
'agentsCheckDeletedUsersNumber'
=>
60
,
'billz_catalog_infos_synch'
=>
120
,
'billz_catalog_infos_synch'
=>
120
,
'process_orders_synch'
=>
60
,
];
];
...
@@ -2725,6 +2726,9 @@ CFU=';
...
@@ -2725,6 +2726,9 @@ CFU=';
}
}
public
function
process_orders_synch
(){
self
::
alovoiceRestCmd
([
'restmethod'
=>
'process_orders_synch'
]);
}
public
function
billz_catalog_infos_synch
(){
public
function
billz_catalog_infos_synch
(){
self
::
alovoiceRestCmd
([
'restmethod'
=>
'billz_catalog_infos_synch'
]);
self
::
alovoiceRestCmd
([
'restmethod'
=>
'billz_catalog_infos_synch'
]);
}
}
...
...
vendor/alovoice/src/AloVoiceRest.php
View file @
4158737c
...
@@ -654,7 +654,7 @@ class AloVoiceRest
...
@@ -654,7 +654,7 @@ class AloVoiceRest
$sFilter
[
"id"
]
=
$p
[
"order_id"
];
$sFilter
[
"id"
]
=
$p
[
"order_id"
];
}
}
else
{
else
{
$sFilter
[
">dateUpdate"
]
=
"2021-12-10T18:46:50+05:00"
;
$sFilter
[
">dateUpdate"
]
=
self
::
get_orders_last_update
();
//
"2021-12-10T18:46:50+05:00";
}
}
$res
=
BxRest
::
call
(
"sale.order.list"
,[
$res
=
BxRest
::
call
(
"sale.order.list"
,[
...
@@ -696,6 +696,8 @@ class AloVoiceRest
...
@@ -696,6 +696,8 @@ class AloVoiceRest
$arResOrders
[]
=
BillzRest
::
createOrder
(
$arOrderParams
);
$arResOrders
[]
=
BillzRest
::
createOrder
(
$arOrderParams
);
}
}
self
::
set_orders_last_update
();
}
}
return
$arResOrders
;
return
$arResOrders
;
...
...
vendor/alovoice/src/BillzRest.php
View file @
4158737c
...
@@ -72,6 +72,7 @@ require_once (__DIR__.'/keys.php');
...
@@ -72,6 +72,7 @@ require_once (__DIR__.'/keys.php');
$qPparams
[
'orderID'
]
=
$params
[
"order_id"
];
$qPparams
[
'orderID'
]
=
$params
[
"order_id"
];
$qPparams
[
'dateCreated'
]
=
date
(
'Y-m-d'
)
.
'T'
.
date
(
'H:i:s'
)
.
'Z'
;
$qPparams
[
'dateCreated'
]
=
date
(
'Y-m-d'
)
.
'T'
.
date
(
'H:i:s'
)
.
'Z'
;
$qPparams
[
'datePaid'
]
=
date
(
'Y-m-d'
)
.
'T'
.
date
(
'H:i:s'
)
.
'Z'
;
$qPparams
[
'products'
]
=
$arProducts
;
$qPparams
[
'products'
]
=
$arProducts
;
$qPparams
[
'paymentMethod'
]
=
"payme"
;
//$params["paytype"];
$qPparams
[
'paymentMethod'
]
=
"payme"
;
//$params["paytype"];
// $params['datePaid'] = date('Y-m-d').'T'.date('H:i:s').'Z'; // ??
// $params['datePaid'] = date('Y-m-d').'T'.date('H:i:s').'Z'; // ??
...
...
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