Исправлена выгрузка архива заказов при установке модуля (#378)
This commit is contained in:
parent
115cf33423
commit
8c38d21477
@ -1,3 +1,6 @@
|
||||
## 2025-01-14 v6.6.2
|
||||
- Исправлена выгрузка архива заказов при установке модуля
|
||||
|
||||
## 2024-12-17 v6.6.1
|
||||
- Исправлены API методы по взаимодействию с пользовательскими полями и справочниками
|
||||
|
||||
|
@ -1 +1 @@
|
||||
- Исправлены API методы по взаимодействию с пользовательскими полями и справочниками
|
||||
- Исправлена выгрузка архива заказов при установке модуля
|
||||
|
@ -31,7 +31,7 @@ if (class_exists('intaro_retailcrm')) {
|
||||
return false;
|
||||
}
|
||||
|
||||
include (__DIR__ . '/../lib/component/advanced/installertrait.php');
|
||||
require_once(__DIR__ . '/../lib/component/advanced/installertrait.php');
|
||||
|
||||
class intaro_retailcrm extends CModule
|
||||
{
|
||||
@ -57,7 +57,8 @@ class intaro_retailcrm extends CModule
|
||||
$path = substr($path, 0, strlen($path) - strlen('/index.php'));
|
||||
$this->INSTALL_PATH = $path;
|
||||
|
||||
include($path . '/version.php');
|
||||
require_once($path . '/version.php');
|
||||
|
||||
$this->MODULE_VERSION = $arModuleVersion['VERSION'];
|
||||
$this->MODULE_VERSION_DATE = $arModuleVersion['VERSION_DATE'];
|
||||
$this->MODULE_NAME = GetMessage('RETAIL_MODULE_NAME');
|
||||
@ -87,6 +88,18 @@ class intaro_retailcrm extends CModule
|
||||
*/
|
||||
function DoInstall()
|
||||
{
|
||||
try {
|
||||
require_once('install_deps.php');
|
||||
} catch (Error $exception) {
|
||||
RCrmActions::eventLog(
|
||||
'RetailCRM module install error',
|
||||
'intaro.retailcrm',
|
||||
$exception->getCode() . ': ' . $exception->getMessage()
|
||||
);
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
global $APPLICATION, $step, $arResult;
|
||||
|
||||
if (!in_array('curl', get_loaded_extensions(), true)) {
|
||||
@ -112,57 +125,6 @@ class intaro_retailcrm extends CModule
|
||||
return false;
|
||||
}
|
||||
|
||||
include($this->INSTALL_PATH . '/../lib/component/apiclient/traits/baseclienttrait.php');
|
||||
include($this->INSTALL_PATH . '/../lib/component/apiclient/traits/customerstrait.php');
|
||||
include($this->INSTALL_PATH . '/../lib/component/apiclient/traits/customerscorporatetrait.php');
|
||||
include($this->INSTALL_PATH . '/../lib/component/apiclient/traits/loyaltytrait.php');
|
||||
include($this->INSTALL_PATH . '/../lib/component/apiclient/traits/ordertrait.php');
|
||||
include($this->INSTALL_PATH . '/../lib/component/apiclient/traits/carttrait.php');
|
||||
include($this->INSTALL_PATH . '/../classes/general/Http/Client.php');
|
||||
include($this->INSTALL_PATH . '/../classes/general/Response/ApiResponse.php');
|
||||
include($this->INSTALL_PATH . '/../classes/general/RCrmActions.php');
|
||||
include($this->INSTALL_PATH . '/../classes/general/user/RetailCrmUser.php');
|
||||
include($this->INSTALL_PATH . '/../classes/general/events/RetailCrmEvent.php');
|
||||
require_once $this->INSTALL_PATH . '/../classes/general/RetailcrmConfigProvider.php';
|
||||
include($this->INSTALL_PATH . '/../lib/model/bitrix/xml/offerparam.php');
|
||||
include($this->INSTALL_PATH . '/../lib/icml/settingsservice.php');
|
||||
include($this->INSTALL_PATH . '/../lib/component/agent.php');
|
||||
include($this->INSTALL_PATH . '/../lib/model/bitrix/xml/selectparams.php');
|
||||
include($this->INSTALL_PATH . '/../lib/model/bitrix/xml/unit.php');
|
||||
include($this->INSTALL_PATH . '/../lib/model/bitrix/xml/xmlcategory.php');
|
||||
include($this->INSTALL_PATH . '/../lib/model/bitrix/xml/xmldata.php');
|
||||
include($this->INSTALL_PATH . '/../lib/model/bitrix/xml/xmloffer.php');
|
||||
include($this->INSTALL_PATH . '/../lib/model/bitrix/xml/xmlsetup.php');
|
||||
include($this->INSTALL_PATH . '/../lib/model/bitrix/xml/xmlsetupprops.php');
|
||||
include($this->INSTALL_PATH . '/../lib/model/bitrix/xml/xmlsetuppropscategories.php');
|
||||
include($this->INSTALL_PATH . '/../lib/icml/icmldirector.php');
|
||||
include($this->INSTALL_PATH . '/../lib/icml/icmlwriter.php');
|
||||
include($this->INSTALL_PATH . '/../lib/icml/queryparamsmolder.php');
|
||||
include($this->INSTALL_PATH . '/../lib/icml/xmlcategorydirector.php');
|
||||
include($this->INSTALL_PATH . '/../lib/icml/xmlcategoryfactory.php');
|
||||
include($this->INSTALL_PATH . '/../lib/icml/xmlofferdirector.php');
|
||||
include($this->INSTALL_PATH . '/../lib/icml/xmlofferbuilder.php');
|
||||
include($this->INSTALL_PATH . '/../lib/icml/utils/icmlutils.php');
|
||||
include($this->INSTALL_PATH . '/../lib/repository/catalogrepository.php');
|
||||
include($this->INSTALL_PATH . '/../lib/repository/filerepository.php');
|
||||
include($this->INSTALL_PATH . '/../lib/repository/hlrepository.php');
|
||||
include($this->INSTALL_PATH . '/../lib/repository/measurerepository.php');
|
||||
include($this->INSTALL_PATH . '/../lib/repository/siterepository.php');
|
||||
include($this->INSTALL_PATH . '/../lib/service/hl.php');
|
||||
include($this->INSTALL_PATH . '/../lib/model/bitrix/orm/catalogiblockinfo.php');
|
||||
include($this->INSTALL_PATH . '/../lib/model/bitrix/orm/iblockcatalog.php');
|
||||
include($this->INSTALL_PATH . '/../classes/general/Exception/InvalidJsonException.php');
|
||||
include($this->INSTALL_PATH . '/../classes/general/Exception/CurlException.php');
|
||||
include($this->INSTALL_PATH . '/../classes/general/RestNormalizer.php');
|
||||
include($this->INSTALL_PATH . '/../classes/general/Logger.php');
|
||||
include($this->INSTALL_PATH . '/../classes/general/services/RetailCrmService.php');
|
||||
include($this->INSTALL_PATH . '/../lib/component/constants.php');
|
||||
$version = COption::GetOptionString($this->MODULE_ID, Constants::CRM_API_VERSION, 0);
|
||||
include($this->INSTALL_PATH . '/../classes/general/ApiClient_v5.php');
|
||||
include($this->INSTALL_PATH . '/../classes/general/order/RetailCrmOrder_v5.php');
|
||||
include($this->INSTALL_PATH . '/../classes/general/history/RetailCrmHistory_v5.php');
|
||||
include($this->INSTALL_PATH . '/../classes/general/cart/RetailCrmCart_v5.php');
|
||||
|
||||
$step = (int) $_REQUEST['step'];
|
||||
|
||||
if (file_exists($this->INSTALL_PATH . '/../classes/general/config/options.xml')) {
|
||||
@ -191,22 +153,6 @@ class intaro_retailcrm extends CModule
|
||||
}
|
||||
}
|
||||
|
||||
include($this->INSTALL_PATH . '/../lib/model/bitrix/abstractmodelproxy.php');
|
||||
include($this->INSTALL_PATH . '/../lib/model/bitrix/orderprops.php');
|
||||
include($this->INSTALL_PATH . '/../lib/model/bitrix/tomodule.php');
|
||||
include($this->INSTALL_PATH . '/../lib/repository/abstractrepository.php');
|
||||
include($this->INSTALL_PATH . '/../lib/repository/orderpropsrepository.php');
|
||||
include($this->INSTALL_PATH . '/../lib/repository/persontyperepository.php');
|
||||
include($this->INSTALL_PATH . '/../lib/repository/tomodulerepository.php');
|
||||
include($this->INSTALL_PATH . '/../lib/model/bitrix/orm/tomodule.php');
|
||||
include($this->INSTALL_PATH . '/../lib/model/bitrix/agreement.php');
|
||||
include($this->INSTALL_PATH . '/../lib/repository/agreementrepository.php');
|
||||
include($this->INSTALL_PATH . '/../lib/service/orderloyaltydataservice.php');
|
||||
include($this->INSTALL_PATH . '/../lib/service/currencyservice.php');
|
||||
include($this->INSTALL_PATH . '/../lib/component/factory/clientfactory.php');
|
||||
include($this->INSTALL_PATH . '/../lib/component/apiclient/clientadapter.php');
|
||||
include($this->INSTALL_PATH . '/../lib/component/advanced/loyaltyinstaller.php');
|
||||
|
||||
$this->installExport();
|
||||
$this->subscriptionSetup();
|
||||
|
||||
|
70
intaro.retailcrm/install/install_deps.php
Normal file
70
intaro.retailcrm/install/install_deps.php
Normal file
@ -0,0 +1,70 @@
|
||||
<?php
|
||||
|
||||
require_once($this->INSTALL_PATH . '/../lib/component/apiclient/traits/baseclienttrait.php');
|
||||
require_once($this->INSTALL_PATH . '/../lib/component/apiclient/traits/customerstrait.php');
|
||||
require_once($this->INSTALL_PATH . '/../lib/component/apiclient/traits/customerscorporatetrait.php');
|
||||
require_once($this->INSTALL_PATH . '/../lib/component/apiclient/traits/loyaltytrait.php');
|
||||
require_once($this->INSTALL_PATH . '/../lib/component/apiclient/traits/ordertrait.php');
|
||||
require_once($this->INSTALL_PATH . '/../lib/component/apiclient/traits/carttrait.php');
|
||||
require_once($this->INSTALL_PATH . '/../classes/general/Http/Client.php');
|
||||
require_once($this->INSTALL_PATH . '/../classes/general/Response/ApiResponse.php');
|
||||
require_once($this->INSTALL_PATH . '/../classes/general/RCrmActions.php');
|
||||
require_once($this->INSTALL_PATH . '/../classes/general/user/RetailCrmUser.php');
|
||||
require_once($this->INSTALL_PATH . '/../classes/general/events/RetailCrmEvent.php');
|
||||
require_once $this->INSTALL_PATH . '/../classes/general/RetailcrmConfigProvider.php';
|
||||
require_once($this->INSTALL_PATH . '/../lib/model/bitrix/xml/offerparam.php');
|
||||
require_once($this->INSTALL_PATH . '/../lib/icml/settingsservice.php');
|
||||
require_once($this->INSTALL_PATH . '/../lib/component/agent.php');
|
||||
require_once($this->INSTALL_PATH . '/../lib/model/bitrix/xml/selectparams.php');
|
||||
require_once($this->INSTALL_PATH . '/../lib/model/bitrix/xml/unit.php');
|
||||
require_once($this->INSTALL_PATH . '/../lib/model/bitrix/xml/xmlcategory.php');
|
||||
require_once($this->INSTALL_PATH . '/../lib/model/bitrix/xml/xmldata.php');
|
||||
require_once($this->INSTALL_PATH . '/../lib/model/bitrix/xml/xmloffer.php');
|
||||
require_once($this->INSTALL_PATH . '/../lib/model/bitrix/xml/xmlsetup.php');
|
||||
require_once($this->INSTALL_PATH . '/../lib/model/bitrix/xml/xmlsetupprops.php');
|
||||
require_once($this->INSTALL_PATH . '/../lib/model/bitrix/xml/xmlsetuppropscategories.php');
|
||||
require_once($this->INSTALL_PATH . '/../lib/icml/icmldirector.php');
|
||||
require_once($this->INSTALL_PATH . '/../lib/icml/icmlwriter.php');
|
||||
require_once($this->INSTALL_PATH . '/../lib/icml/queryparamsmolder.php');
|
||||
require_once($this->INSTALL_PATH . '/../lib/icml/xmlcategorydirector.php');
|
||||
require_once($this->INSTALL_PATH . '/../lib/icml/xmlcategoryfactory.php');
|
||||
require_once($this->INSTALL_PATH . '/../lib/icml/xmlofferdirector.php');
|
||||
require_once($this->INSTALL_PATH . '/../lib/icml/xmlofferbuilder.php');
|
||||
require_once($this->INSTALL_PATH . '/../lib/repository/catalogrepository.php');
|
||||
require_once($this->INSTALL_PATH . '/../lib/repository/filerepository.php');
|
||||
require_once($this->INSTALL_PATH . '/../lib/repository/hlrepository.php');
|
||||
require_once($this->INSTALL_PATH . '/../lib/repository/measurerepository.php');
|
||||
require_once($this->INSTALL_PATH . '/../lib/repository/siterepository.php');
|
||||
require_once($this->INSTALL_PATH . '/../lib/service/hl.php');
|
||||
require_once($this->INSTALL_PATH . '/../lib/model/bitrix/orm/catalogiblockinfo.php');
|
||||
require_once($this->INSTALL_PATH . '/../lib/model/bitrix/orm/iblockcatalog.php');
|
||||
require_once($this->INSTALL_PATH . '/../classes/general/Exception/InvalidJsonException.php');
|
||||
require_once($this->INSTALL_PATH . '/../classes/general/Exception/CurlException.php');
|
||||
require_once($this->INSTALL_PATH . '/../classes/general/RestNormalizer.php');
|
||||
require_once($this->INSTALL_PATH . '/../classes/general/Logger.php');
|
||||
require_once($this->INSTALL_PATH . '/../classes/general/services/RetailCrmService.php');
|
||||
require_once($this->INSTALL_PATH . '/../lib/component/constants.php');
|
||||
require_once($this->INSTALL_PATH . '/../classes/general/ApiClient_v5.php');
|
||||
require_once($this->INSTALL_PATH . '/../classes/general/order/RetailCrmOrder_v5.php');
|
||||
require_once($this->INSTALL_PATH . '/../classes/general/history/RetailCrmHistory_v5.php');
|
||||
require_once($this->INSTALL_PATH . '/../classes/general/cart/RetailCrmCart_v5.php');
|
||||
require_once($this->INSTALL_PATH . '/../lib/service/managerservice.php');
|
||||
require_once($this->INSTALL_PATH . '/../lib/service/loyaltyservice.php');
|
||||
require_once($this->INSTALL_PATH . '/../lib/service/loyaltyaccountservice.php');
|
||||
require_once($this->INSTALL_PATH . '/../lib/repository/managerrepository.php');
|
||||
require_once($this->INSTALL_PATH . '/../classes/general/services/BitrixOrderService.php');
|
||||
require_once($this->INSTALL_PATH . '/../lib/model/bitrix/abstractmodelproxy.php');
|
||||
require_once($this->INSTALL_PATH . '/../lib/model/bitrix/orderprops.php');
|
||||
require_once($this->INSTALL_PATH . '/../lib/model/bitrix/tomodule.php');
|
||||
require_once($this->INSTALL_PATH . '/../lib/repository/abstractrepository.php');
|
||||
require_once($this->INSTALL_PATH . '/../lib/repository/orderpropsrepository.php');
|
||||
require_once($this->INSTALL_PATH . '/../lib/repository/persontyperepository.php');
|
||||
require_once($this->INSTALL_PATH . '/../lib/repository/tomodulerepository.php');
|
||||
require_once($this->INSTALL_PATH . '/../lib/model/bitrix/orm/tomodule.php');
|
||||
require_once($this->INSTALL_PATH . '/../lib/model/bitrix/agreement.php');
|
||||
require_once($this->INSTALL_PATH . '/../lib/repository/agreementrepository.php');
|
||||
require_once($this->INSTALL_PATH . '/../lib/service/orderloyaltydataservice.php');
|
||||
require_once($this->INSTALL_PATH . '/../lib/service/currencyservice.php');
|
||||
require_once($this->INSTALL_PATH . '/../lib/component/factory/clientfactory.php');
|
||||
require_once($this->INSTALL_PATH . '/../lib/component/apiclient/clientadapter.php');
|
||||
require_once($this->INSTALL_PATH . '/../lib/component/advanced/loyaltyinstaller.php');
|
@ -1,6 +1,6 @@
|
||||
<?php
|
||||
|
||||
$arModuleVersion = [
|
||||
'VERSION' => '6.6.1',
|
||||
'VERSION_DATE' => '2024-12-17 13:00:00'
|
||||
'VERSION' => '6.6.2',
|
||||
'VERSION_DATE' => '2025-01-14 13:00:00'
|
||||
];
|
||||
|
@ -18,7 +18,7 @@ namespace Intaro\RetailCrm\Component;
|
||||
*/
|
||||
class Constants
|
||||
{
|
||||
public const MODULE_VERSION = '6.6.1';
|
||||
public const MODULE_VERSION = '6.6.2';
|
||||
public const CRM_PURCHASE_PRICE_NULL = 'purchasePrice_null';
|
||||
public const BITRIX_USER_ID_PREFIX = 'bitrixUserId-';
|
||||
public const CRM_USERS_MAP = 'crm_users_map';
|
||||
|
Loading…
x
Reference in New Issue
Block a user