Current Path : /home/bitrix/ext_www/dev.ballu.in.ua/local/ |
Current File : /home/bitrix/ext_www/dev.ballu.in.ua/local/testddk.php |
<?php $_SERVER["DOCUMENT_ROOT"] = realpath(dirname(__FILE__)."/.."); $DOCUMENT_ROOT = $_SERVER["DOCUMENT_ROOT"]; define("NO_KEEP_STATISTIC", true); define("NOT_CHECK_PERMISSIONS",true); define('CHK_EVENT', false); require($_SERVER["DOCUMENT_ROOT"] . "/bitrix/modules/main/include/prolog_before.php"); if (!$GLOBALS["USER"]->isAdmin() && $argv[1] != "r983yd9t7py3wd98ty4p93wtmj9e") die(); set_time_limit(0); if ($argv[1] == "r983yd9t7py3wd98ty4p93wtmj9e") { $_SERVER["REMOTE_ADDR"] = "91.199.34.100"; } //\Bitrix\Main\Loader::includeModule("rusklimat.b2b"); //Rusklimat\B2b\Agents\Gate\SendOrdersToCrm::Execute();// отправить заказы в crm //die("done"); /** * стартануть все обмены из консоли * cd /home/bitrix/PUB/rusklimat.com/local * php testddk.php r983yd9t7py3wd98ty4p93wtmj9e */ \Bitrix\Main\Loader::includeModule("rusklimat.exchange"); \Bitrix\Main\Loader::includeModule("rusklimat.b2b"); //(new RusklimatExchangeFileprocessor)->runExchange(); (new RusklimatExchangeFilesetter)->runExchange(); //(new RusklimatExchangeFilechecker)->runExchange(); die(); //(new RusklimatExchangeB2bWarehousesPartners)->runExchange(); //(new RusklimatExchangeB2bWarehousesProducts)->runExchange(); //(new RusklimatExchangeB2bWarehouses)->runExchange(); //die(); //(new RusklimatExchangeFilechecker)->runExchange(); //die(); //(new RusklimatExchangeContractors)->runExchange(); //(new RusklimatExchangeB2bAgreement)->runExchange(); //(new RusklimatExchangeB2bManagers)->runExchange(); //(new RusklimatExchangeB2bOrganization)->runExchange(); //die(); (new RusklimatExchangeContractors)->runExchange(); (new RusklimatExchangeB2bAgreement)->runExchange(); (new RusklimatExchangeB2bManagers)->runExchange(); (new RusklimatExchangeB2bOrganization)->runExchange(); (new RusklimatExchangeB2bPrice)->runExchange(); \Rusklimat\B2b\Agents\Catalog\Import::Execute(); \Rusklimat\B2b\Agents\Gate\LoadProductWhCount::Execute(); (new RusklimatExchangeGlobus)->runExchange(); (new RusklimatExchangeEntity)->runExchange(); (new RusklimatExchangeB2bPrice)->runExchange(); (new RusklimatExchangeB2bReceivables)->runExchange(); (new RusklimatExchangeB2bOrderStatus)->runExchangePub(); (new RusklimatExchangeFileprocessor)->runExchange(); (new RusklimatExchangeFilesetter)->runExchange(); (new RusklimatExchangeFilechecker)->runExchange(); (new RusklimatExchangeB2bWarehousesPartners)->runExchange(); (new RusklimatExchangeB2bWarehousesProducts)->runExchange(); (new RusklimatExchangeB2bWarehouses)->runExchange(); (new RusklimatExchangeB2bExclusive)->runExchange(); //\Rusklimat\B2b\Agents\InternetPartner\Feeds::Execute(); //\Rusklimat\B2b\Agents\InternetPartner\FeedsSectionsNew::Execute(); //\Rusklimat\B2b\Agents\InternetPartner\FeedsSections::RunExecute(25842); //Rusklimat\B2b\Agents\Gate\SendOrdersToCrm::Execute(); die(); $rest = new RusklimatConnect(); $data = $rest->getRest('b2b_order', $data, 'GET', false, 'http://api.rusklimat.ru/'); //echo "<xmp>"; //print_r([ // $data //]); //echo "</xmp>"; $count = 0; foreach ($data["data"] as $arDoc) { if ($arDoc["ТипДокумента"] == "ЗаказКлиента") { if ($arDoc["Организация"] == "715fe640-4708-11e5-93fe-ac162da6d231") { $count++; echo "<xmp>"; print_r([ $arDoc ]); echo "</xmp>"; } } } echo "<xmp>"; print_r([ "TOTAL DOCS" => $count ]); echo "</xmp>";