Find this useful? Enter your email to receive occasional updates for securing PHP code.
Signing you up...
Thank you for signing up!
PHP Decode
$_624731433= $GLOBALS['____1368430783'][559](); $GLOBALS[___2132331056(3833)]->AddHeadStri..
Decoded Output download
<? $_624731433= $GLOBALS['____1368430783'][559](); $GLOBALS[___2132331056(3833)]->AddHeadString($_624731433, true);}}} public static function get_lable($_2140232741= array()){ if($GLOBALS['____1368430783'][560]($_2140232741) && $GLOBALS['____1368430783'][561]($_2140232741)>0){ $_776628727= CMaxyssOzon::getOptions(false, array('OZON_ID', 'PERSON_TYPE')); $_2092264924= array(); foreach($_776628727 as $_1247288486=>$_1662605424){ $_145563253= $_1662605424[___2132331056(3834)]; $_1590289703= Option::get(MAXYSS_MODULE_NAME, ___2132331056(3835), ___2132331056(3836)); $_864671537= CSaleOrderProps::GetList( array(___2132331056(3837) => ___2132331056(3838)), array( ___2132331056(3839) => $_1590289703, ___2132331056(3840) => $_145563253,), false, false, array()); if($_1894101219= $_864671537->Fetch()){ $_2092264924[$_1247288486]= $_1894101219[___2132331056(3841)];}} $_1448512679= array( ___2132331056(3842) => $_2140232741, ___2132331056(3843).$_1590289703 => false,); $_961302368= \CSaleOrder::GetList( array(___2132331056(3844) => ___2132331056(3845)), $_1448512679); $_1524830117= array(); $_1909526986= ___2132331056(3846); $_1831668872= ___2132331056(3847); $_345501284= ___2132331056(3848); while($_1439838301= $_961302368->Fetch()){ $_1041053278= Order::load($_1439838301[___2132331056(3849)]); $_519679736= $_1041053278->getSiteId(); if($_1909526986 == ___2132331056(3850)){ $_1909526986= $_930993294= $_776628727[$_519679736][___2132331056(3851)]; $_866626191= CMaxyssOzon::GetApiKey($_930993294); $_1831668872= $_519679736; $_345501284= $_2092264924[$_1831668872];} if($_1909526986 != ___2132331056(3852) && $_1831668872 != ___2132331056(3853) && $_519679736 == $_1831668872){ $_832219342= $_1041053278->getPropertyCollection(); $_556614944= $_832219342->getItemByOrderPropertyId($_345501284); $_649993771= $_556614944->getValue(); if($_649993771 != ___2132331056(3854)) $_1524830117[]= $_649993771;}} if(!empty($_1524830117)){ $_1655626321= array( ___2132331056(3855) => $_1524830117); $_1655626321= \Bitrix\Main\Web\Json::encode($_1655626321); $_1678251049= CRestQuery::rest_query($_930993294, $_866626191, $_622945728= OZON_BASE_URL, $_1655626321, ___2132331056(3856)); return $_1678251049;}else{ echo $GLOBALS['____1368430783'][562](array(___2132331056(3857) => ___2132331056(3858)));}} else{ echo $GLOBALS['____1368430783'][563](array(___2132331056(3859) => ___2132331056(3860)));}} static function GetDocuments($_1909526986, $_1429110246){ $_1655626321= array('delivery_method_id'=>$_1429110246); $_1655626321= \Bitrix\Main\Web\Json::encode($_1655626321); $_930993294= $_1909526986; $_866626191= CMaxyssOzon::GetApiKey($_1909526986); $_490088211= CRestQuery::rest_query($_930993294, $_866626191, $_622945728= OZON_BASE_URL, $_1655626321, ___2132331056(3861)); return $_490088211;} static function CheckDocuments($_138949683, $_1909526986){ $_930993294= $_1909526986; $_866626191= CMaxyssOzon::GetApiKey($_1909526986); $_1655626321= array(___2132331056(3862)=>$_138949683); $_1655626321= \Bitrix\Main\Web\Json::encode($_1655626321); $_919542131= CRestQuery::rest_query($_930993294, $_866626191, $_622945728= OZON_BASE_URL, $_1655626321, ___2132331056(3863)); return $_919542131;} static function CheckDocumentsDigital($_138949683, $_1909526986){ $_930993294= $_1909526986; $_866626191= CMaxyssOzon::GetApiKey($_1909526986); $_1655626321= array(___2132331056(3864)=>$_138949683); $_1655626321= \Bitrix\Main\Web\Json::encode($_1655626321); $_919542131= CRestQuery::rest_query($_930993294, $_866626191, $_622945728= OZON_BASE_URL, $_1655626321, ___2132331056(3865)); return $_919542131;} static function GetDigitalDoc($_138949683, $_1909526986){ $_635411129= array(); $_930993294= $_1909526986; $_866626191= CMaxyssOzon::GetApiKey($_1909526986); $_1655626321= array(___2132331056(3866)=>$_138949683); $_1655626321= \Bitrix\Main\Web\Json::encode($_1655626321); $_1678251049= CRestQuery::rest_query($_930993294, $_866626191, $_622945728= OZON_BASE_URL, $_1655626321, ___2132331056(3867)); $_635411129[]= $_1678251049[___2132331056(3868)]; $_1655626321= array(___2132331056(3869)=>$_138949683, ___2132331056(3870)=>___2132331056(3871)); $_1655626321= \Bitrix\Main\Web\Json::encode($_1655626321); $_651880648= CRestQuery::rest_query($_930993294, $_866626191, $_622945728= OZON_BASE_URL, $_1655626321, ___2132331056(3872)); if($GLOBALS['____1368430783'][564]($_651880648) && $_651880648[___2132331056(3873)]) $_635411129[]= $_651880648[___2132331056(3874)]; $_1655626321= array(___2132331056(3875)=>$_138949683, ___2132331056(3876)=>___2132331056(3877)); $_1655626321= \Bitrix\Main\Web\Json::encode($_1655626321); $_608495156= CRestQuery::rest_query($_930993294, $_866626191, $_622945728= OZON_BASE_URL, $_1655626321, ___2132331056(3878)); if($GLOBALS['____1368430783'][565]($_608495156) && $_608495156[___2132331056(3879)]) $_635411129[]= $_608495156[___2132331056(3880)]; $_1655626321= array(___2132331056(3881)=>$_138949683, ___2132331056(3882)=>___2132331056(3883)); $_1655626321= \Bitrix\Main\Web\Json::encode($_1655626321); $_1430993602= CRestQuery::rest_query($_930993294, $_866626191, $_622945728= OZON_BASE_URL, $_1655626321, ___2132331056(3884)); if($GLOBALS['____1368430783'][566]($_1430993602) && $_1430993602[___2132331056(3885)]) $_635411129[]= $_1430993602[___2132331056(3886)]; return $_635411129;} static function GetDocPdf($_138949683, $_1909526986){ $_930993294= $_1909526986; $_866626191= CMaxyssOzon::GetApiKey($_1909526986); $_1655626321= array(___2132331056(3887)=>$_138949683); $_1655626321= \Bitrix\Main\Web\Json::encode($_1655626321); $_1678251049= CRestQuery::rest_query($_930993294, $_866626191, $_622945728= OZON_BASE_URL, $_1655626321, ___2132331056(3888)); return $_1678251049;} public static function Order_ship($_134632684= 0, $_1743010071= array()){ if($_134632684> 0){ $_1041053278= Order::load($_134632684); $_519679736= $_1041053278->getSiteId(); $_776628727= CMaxyssOzon::getOptions($_519679736, array(___2132331056(3889), ___2132331056(3890), ___2132331056(3891), ___2132331056(3892), ___2132331056(3893))); $_930993294= $_776628727[$_519679736][___2132331056(3894)]; $_866626191= CMaxyssOzon::GetApiKey($_930993294); $_847438967= ___2132331056(3895); if($GLOBALS['____1368430783'][567]($_776628727[$_519679736][___2132331056(3896)])>(914-2*457)) $_847438967= ___2132331056(3897); $_145563253= $_776628727[$_519679736][___2132331056(3898)]; $_1590289703= Option::get(MAXYSS_MODULE_NAME, ___2132331056(3899), ___2132331056(3900)); $_1267962419= false; $_864671537= CSaleOrderProps::GetList( array(___2132331056(3901) => ___2132331056(3902)), array( ___2132331056(3903) => $_1590289703, ___2132331056(3904) => $_145563253,), false, false, array()); if($_1894101219= $_864671537->Fetch()){ $_1267962419= true; $_345501284= $_1894101219[___2132331056(3905)]; $_832219342= $_1041053278->getPropertyCollection(); $_556614944= $_832219342->getItemByOrderPropertyId($_345501284); $_44556297= $_556614944->getValue(); $_639608668= array(); if($_44556297){ $_1535231706= $_1041053278->getBasket(); foreach($_1535231706 as $_187578874){ $_1514915614[$_187578874->getProductId()][___2132331056(3906)]= $_187578874->getProductId(); $_1514915614[$_187578874->getProductId()][___2132331056(3907)]= $_187578874->getQuantity(); $_639608668[$_187578874->getField(___2132331056(3908))]= $_187578874->getProductId(); $_530497510= $_187578874->getPropertyCollection(); foreach($_530497510 as $_859705587){ if( $_859705587->getField(___2132331056(3909)) == ___2132331056(3910)){ $_1330918667[$_187578874->getField(___2132331056(3911))][___2132331056(3912)]= $_859705587->getField(___2132331056(3913));} if( $_859705587->getField(___2132331056(3914)) == ___2132331056(3915)){ $_1514915614[$_187578874->getProductId()][___2132331056(3916)]= $_859705587->getField(___2132331056(3917)); $_1330918667[$_187578874->getField(___2132331056(3918))][___2132331056(3919)]= $_859705587->getField(___2132331056(3920));}}} if(!empty($_639608668)){ $_1294317074= array(___2132331056(3921) => $_639608668); $_2122750402= Array(___2132331056(3922), ___2132331056(3923), ___2132331056(3924), ___2132331056(3925), ___2132331056(3926)); if($_847438967 != ___2132331056(3927)) $_2122750402[]= $_847438967. $_776628727[$_519679736][___2132331056(3928)]; $_635411129= CIBlockElement::GetList(Array(___2132331056(3929) => ___2132331056(3930)), $_1294317074, false, false, $_2122750402); while($_1939302906= $_635411129->GetNextElement()){ $_131873019= $_1939302906->GetFields(); if($_847438967 != ___2132331056(3931)) $_1013773211= $_131873019[___2132331056(3932). $_776628727[$_519679736][___2132331056(3933)]. ___2132331056(3934)]; else $_1013773211= $_131873019[___2132331056(3935)]; $_359980445= self::GetProductInfo($_1013773211, $_930993294, $_866626191); if($_2016315158= $_359980445[___2132331056(3936)]){ foreach($_2016315158 as $_1503155118){ if($_1503155118[___2132331056(3937)] == ___2132331056(3938)) $_254323330[$GLOBALS['____1368430783'][568]($_131873019[___2132331056(3939)], $_639608668)][___2132331056(3940)]= $_1503155118[___2132331056(3941)];}} $_254323330[$GLOBALS['____1368430783'][569]($_131873019[___2132331056(3942)], $_639608668)][___2132331056(3943)]= $GLOBALS['____1368430783'][570]($_1514915614[$_131873019[___2132331056(3944)]][___2132331056(3945)]);}} $_2034575808= $_1041053278->getShipmentCollection(); foreach($_2034575808 as $_1527525606){ if($_1527525606->isSystem()) continue; $_1122071946= $_1527525606->getShipmentItemCollection(); foreach($_1122071946 as $_1287435244){ if(isset($_1330918667[$_1287435244->getField(___2132331056(3946))][___2132331056(3947)])){ $_254323330[$_1287435244->getField(___2132331056(3948))][___2132331056(3949)]=(isset($_1330918667[$_1287435244->getField(___2132331056(3950))][___2132331056(3951)]))? $_1330918667[$_1287435244->getField(___2132331056(3952))][___2132331056(3953)]: ___2132331056(3954);} $_491330757= $_1287435244->getShipmentItemStoreCollection(); foreach($_491330757 as $_557945291){ $_1106594236= $_557945291->getField(___2132331056(3955)); $_254323330[$_557945291->getField(___2132331056(3956))][___2132331056(3957)][]= $GLOBALS['____1368430783'][571]($_1106594236);}}} $_1746790580= array(); if(!empty($_1743010071)){ foreach($_1743010071 as $_757261430){ $_949794688= array(); if(!empty($_757261430[___2132331056(3958)])){ foreach($_757261430[___2132331056(3959)] as $_524183690){ $_949794688[$_524183690[___2132331056(3960)]]= array( ___2132331056(3961) => $_254323330[$_524183690[___2132331056(3962)]][___2132331056(3963)], ___2132331056(3964) => $_524183690[___2132331056(3965)],); if(!empty($_254323330[$_524183690[___2132331056(3966)]][___2132331056(3967)])){ $_254323330[$_524183690[___2132331056(3968)]][___2132331056(3969)]= $GLOBALS['____1368430783'][572]($_254323330[$_524183690[___2132331056(3970)]][___2132331056(3971)]); $_94928217= array(); for($_1233799262=(986-2*493); $_1233799262< $_524183690[___2132331056(3972)]; $_1233799262++){ $_94928217[]= array( ___2132331056(3973) =>(!empty($_524183690[___2132331056(3974)]))? $_524183690[___2132331056(3975)]: ___2132331056(3976), ___2132331056(3977) =>(!empty($_524183690[___2132331056(3978)]))? false: true, ___2132331056(3979) => $GLOBALS['____1368430783'][573]($_254323330[$_524183690[___2132331056(3980)]][___2132331056(3981)][$_1233799262])); unset($_254323330[$_524183690[___2132331056(3982)]][___2132331056(3983)][$_1233799262]);} $_949794688[$_524183690[___2132331056(3984)]][___2132331056(3985)]=$_94928217;}else{ $_94928217= array(); for($_1233799262= min(120,0,40); $_1233799262< $_524183690[___2132331056(3986)]; $_1233799262++){ $_94928217[]= array( ___2132331056(3987) =>(!empty($_524183690[___2132331056(3988)]))? $_524183690[___2132331056(3989)]: ___2132331056(3990), ___2132331056(3991) =>(!empty($_524183690[___2132331056(3992)]))? false: true);} $_949794688[$_524183690[___2132331056(3993)]][___2132331056(3994)]=$_94928217; }}} $_1519174442= new \CEventLog; $_1519174442->Add(array(___2132331056(3995) => ___2132331056(3996), ___2132331056(3997) => ___2132331056(3998), ___2132331056(3999) => ___2132331056(4000), ___2132331056(4001) => $_134632684, ___2132331056(4002) => $GLOBALS['____1368430783'][574]($_949794688))); $_1746790580[][___2132331056(4003)]= $GLOBALS['____1368430783'][575]($_949794688);}} if(!empty($_1746790580)){ $_1444797059= array( ___2132331056(4004) => $_1746790580, ___2132331056(4005) => $_44556297);} else{ $_1712988805= array(); foreach($_254323330 as $_415310410 => $_2110002982){ $_1712988805[$_415310410]= array( ___2132331056(4006) => $_2110002982[___2132331056(4007)], ___2132331056(4008) => $_2110002982[___2132331056(4009)],); if(isset($_2110002982[___2132331056(4010)]) || isset($_2110002982[___2132331056(4011)])){ $_94928217= array(); if(isset($_2110002982[___2132331056(4012)]) &&!empty($_2110002982[___2132331056(4013)])){ foreach($_2110002982[___2132331056(4014)] as $_2056831126){ $_94928217[]= array( ___2132331056(4015) =>(isset($_2110002982[___2132331056(4016)]) && $_2110002982[___2132331056(4017)] != ___2132331056(4018))? $_2110002982[___2132331056(4019)]: ___2132331056(4020), ___2132331056(4021) =>(isset($_2110002982[___2132331056(4022)]) && $_2110002982[___2132331056(4023)] != ___2132331056(4024))? false: true, ___2132331056(4025) => $GLOBALS['____1368430783'][576]($_2056831126));}} else{ for($_524183690= round(0+0.2+0.2+0.2+0.2+0.2); $_524183690 <= $_2110002982[___2132331056(4026)]; $_524183690++){ $_94928217[]= array( ___2132331056(4027) =>(isset($_2110002982[___2132331056(4028)]) && $_2110002982[___2132331056(4029)] != ___2132331056(4030))? $_2110002982[___2132331056(4031)]: ___2132331056(4032), ___2132331056(4033) =>(isset($_2110002982[___2132331056(4034)]) && $_2110002982[___2132331056(4035)] != ___2132331056(4036))? false: true,);}} $_1712988805[$_415310410][___2132331056(4037)]= $_94928217;}} $_1444797059= array( ___2132331056(4038) => array( array( ___2132331056(4039) => $GLOBALS['____1368430783'][577]($_1712988805))), ___2132331056(4040) => $_44556297);} $_1959433393= array(); $_1655626321= $_1444797059; $_1655626321= \Bitrix\Main\Web\Json::encode($_1655626321); $_1959433393= CRestQuery::rest_query($_930993294, $_866626191, $_622945728= OZON_BASE_URL, $_1655626321, ___2132331056(4041)); if($_1959433393[___2132331056(4042)]){ $_1324907597[___2132331056(4043)][]= $_134632684.___2132331056(4044).$_1959433393[___2132331056(4045)]; return $_1324907597;} elseif($_44556297 == $_1959433393[(856-2*428)]){ if($GLOBALS['____1368430783'][578]($_1959433393)>round(0+1)){ unset($_1959433393[min(28,0,9.3333333333333)]); $_1324907597[___2132331056(4046)][]= $_134632684.___2132331056(4047).GetMessage(___2132331056(4048), array(___2132331056(4049)=>$GLOBALS['____1368430783'][579](___2132331056(4050), $_1959433393)));}else{ $_1324907597[___2132331056(4051)][]= $_134632684.___2132331056(4052).GetMessage(___2132331056(4053));} $_228362912= array(); $_776628727= CMaxyssOzon::getOptions($_519679736); $_228362912= $_776628727[$_519679736]; $_228362912[___2132331056(4054)]= $_519679736; $_2097374928= ___2132331056(4055); $_864671537= CSaleOrderProps::GetList( array(___2132331056(4056) => ___2132331056(4057)), array( ___2132331056(4058) => ___2132331056(4059), ___2132331056(4060) => $_145563253,), false, false, array()); if($_1894101219= $_864671537->Fetch()){ $_556614944= $_832219342->getItemByOrderPropertyId($_1894101219[___2132331056(4061)]); $_2097374928= $_556614944->getValue();} $_1584367431= $_1041053278->getField(___2132331056(4062)); CMaxyssOzonAgent::changeStatusOrder(array(___2132331056(4063) => $_2097374928, ___2132331056(4064) => ___2132331056(4065)), $_228362912, $_1041053278); if($_1041053278->getField(___2132331056(4066)) == ___2132331056(4067)) $_1041053278->setField(___2132331056(4068), ___2132331056(4069)); if($_1584367431 != $_1041053278->getField(___2132331056(4070))){ if($_1771212304= $_1041053278->save()){ if(\Bitrix\Main\Config\Option::get(___2132331056(4071), ___2132331056(4072), ___2132331056(4073)) == ___2132331056(4074)){ $_1519174442= new \CEventLog; $_1519174442->Add(array(___2132331056(4075) => ___2132331056(4076), ___2132331056(4077) => ___2132331056(4078), ___2132331056(4079) => ___2132331056(4080), ___2132331056(4081) => $_134632684, ___2132331056(4082) => $GLOBALS['____1368430783'][580]($_1771212304)));}}} return $_1324907597;}else{ $_1324907597[___2132331056(4083)][]= $_134632684.___2132331056(4084).GetMessage(___2132331056(4085)); return $_1324907597;}}else{ $_1324907597[___2132331056(4086)][]= $_134632684.___2132331056(4087).GetMessage(___2132331056(4088)); return $_1324907597;}}else{ if(\Bitrix\Main\Config\Option::get(___2132331056(4089), ___2132331056(4090), ___2132331056(4091)) == ___2132331056(4092)){ $_1519174442= new \CEventLog; $_1519174442->Add(array(___2132331056(4093) => ___2132331056(4094), ___2132331056(4095) => ___2132331056(4096), ___2132331056(4097) => ___2132331056(4098), ___2132331056(4099) => $_134632684, ___2132331056(4100) => ___2132331056(4101)));} $_1324907597[___2132331056(4102)][]= ___2132331056(4103); return $_1324907597;}}else{ $_1324907597[___2132331056(4104)][]= ___2132331056(4105); return $_1324907597;}} public static function OrderShipAgent($_134632684= 0,$_869998499= 0){ if($_134632684> 0){ $_1041053278= Order::load($_134632684); $_519679736= $_1041053278->getSiteId(); $_776628727= CMaxyssOzon::getOptions($_519679736); $_930993294= $_776628727[$_519679736][___2132331056(4106)]; $_866626191= CMaxyssOzon::GetApiKey($_930993294); $_847438967= ___2132331056(4107); if($GLOBALS['____1368430783'][581]($_776628727[$_519679736][___2132331056(4108)])>(766-2*383)) $_847438967= ___2132331056(4109); $_145563253= $_776628727[$_519679736][___2132331056(4110)]; $_1590289703= Option::get(MAXYSS_MODULE_NAME, ___2132331056(4111), ___2132331056(4112)); $_1267962419= false; $_864671537= CSaleOrderProps::GetList( array(___2132331056(4113) => ___2132331056(4114)), array( ___2132331056(4115) => $_1590289703, ___2132331056(4116) => $_145563253,), false, false, array()); if($_1894101219= $_864671537->Fetch()){ $_1267962419= true; $_345501284= $_1894101219[___2132331056(4117)]; $_832219342= $_1041053278->getPropertyCollection(); $_556614944= $_832219342->getItemByOrderPropertyId($_345501284); $_44556297= $_556614944->getValue(); $_639608668= array(); if($_44556297){ $_1535231706= $_1041053278->getBasket(); foreach($_1535231706 as $_187578874){ $_1514915614[$_187578874->getProductId()][___2132331056(4118)]= $_187578874->getProductId(); $_1514915614[$_187578874->getProductId()][___2132331056(4119)]= $_187578874->getQuantity(); $_639608668[$_187578874->getField(___2132331056(4120))]= $_187578874->getProductId(); $_530497510= $_187578874->getPropertyCollection(); foreach($_530497510 as $_859705587){ if( $_859705587->getField(___2132331056(4121)) == ___2132331056(4122)){ $_1330918667[$_187578874->getField(___2132331056(4123))][___2132331056(4124)]= $_859705587->getField(___2132331056(4125));} if( $_859705587->getField(___2132331056(4126)) == ___2132331056(4127)){ $_1514915614[$_187578874->getProductId()][___2132331056(4128)]= $_859705587->getField(___2132331056(4129)); $_1330918667[$_187578874->getField(___2132331056(4130))][___2132331056(4131)]= $_859705587->getField(___2132331056(4132));}}} if(!empty($_639608668)){ $_1294317074= array(___2132331056(4133) => $_639608668); $_2122750402= Array(___2132331056(4134), ___2132331056(4135), ___2132331056(4136), ___2132331056(4137), ___2132331056(4138)); if($_847438967 != ___2132331056(4139)) $_2122750402[]= $_847438967. $_776628727[$_519679736][___2132331056(4140)]; $_635411129= CIBlockElement::GetList(Array(___2132331056(4141) => ___2132331056(4142)), $_1294317074, false, false, $_2122750402); while($_1939302906= $_635411129->GetNextElement()){ $_131873019= $_1939302906->GetFields(); if($_847438967 != ___2132331056(4143)) $_1013773211= $_131873019[___2132331056(4144). $_776628727[$_519679736][___2132331056(4145)]. ___2132331056(4146)]; else $_1013773211= $_131873019[___2132331056(4147)]; $_359980445= self::GetProductInfo($_1013773211, $_930993294, $_866626191); if($_2016315158= $_359980445[___2132331056(4148)]){ foreach($_2016315158 as $_1503155118){ if($_1503155118[___2132331056(4149)] == ___2132331056(4150)) $_254323330[$GLOBALS['____1368430783'][582]($_131873019[___2132331056(4151)], $_639608668)][___2132331056(4152)]= $_1503155118[___2132331056(4153)];}} $_254323330[$GLOBALS['____1368430783'][583]($_131873019[___2132331056(4154)], $_639608668)][___2132331056(4155)]= $GLOBALS['____1368430783'][584]($_1514915614[$_131873019[___2132331056(4156)]][___2132331056(4157)]);}} $_2034575808= $_1041053278->getShipmentCollection(); foreach($_2034575808 as $_1527525606){ if($_1527525606->isSystem()) continue; $_1122071946= $_1527525606->getShipmentItemCollection(); foreach($_1122071946 as $_1287435244){ if(isset($_1330918667[$_1287435244->getField(___2132331056(4158))][___2132331056(4159)])){ $_254323330[$_1287435244->getField(___2132331056(4160))][___2132331056(4161)]=(isset($_1330918667[$_1287435244->getField(___2132331056(4162))][___2132331056(4163)]))? $_1330918667[$_1287435244->getField(___2132331056(4164))][___2132331056(4165)]: ___2132331056(4166);} $_491330757= $_1287435244->getShipmentItemStoreCollection(); foreach($_491330757 as $_557945291){ $_1106594236= $_557945291->getField(___2132331056(4167)); $_254323330[$_557945291->getField(___2132331056(4168))][___2132331056(4169)][]= $GLOBALS['____1368430783'][585]($_1106594236);}}} $_1712988805= array(); foreach($_254323330 as $_415310410 => $_2110002982){ $_1712988805[$_415310410]= array( ___2132331056(4170) => $_2110002982[___2132331056(4171)], ___2132331056(4172) => $_2110002982[___2132331056(4173)],); if(isset($_2110002982[___2132331056(4174)]) || isset($_2110002982[___2132331056(4175)])){ $_94928217= array(); if(isset($_2110002982[___2132331056(4176)]) &&!empty($_2110002982[___2132331056(4177)])){ foreach($_2110002982[___2132331056(4178)] as $_2056831126){ $_94928217[]= array( ___2132331056(4179) =>(isset($_2110002982[___2132331056(4180)]) && $_2110002982[___2132331056(4181)] != ___2132331056(4182))? $_2110002982[___2132331056(4183)]: ___2132331056(4184), ___2132331056(4185) =>(isset($_2110002982[___2132331056(4186)]) && $_2110002982[___2132331056(4187)] != ___2132331056(4188))? false: true, ___2132331056(4189) => $GLOBALS['____1368430783'][586]($_2056831126));}} else{ for($_524183690= round(0+0.5+0.5); $_524183690 <= $_2110002982[___2132331056(4190)]; $_524183690++){ $_94928217[]= array( ___2132331056(4191) =>(isset($_2110002982[___2132331056(4192)]) && $_2110002982[___2132331056(4193)] != ___2132331056(4194))? $_2110002982[___2132331056(4195)]: ___2132331056(4196), ___2132331056(4197) =>(isset($_2110002982[___2132331056(4198)]) && $_2110002982[___2132331056(4199)] != ___2132331056(4200))? false: true,);}} $_1712988805[$_415310410][___2132331056(4201)]= $_94928217;}} $_1444797059= array( ___2132331056(4202) => array( array( ___2132331056(4203) => $GLOBALS['____1368430783'][587]($_1712988805))), ___2132331056(4204) => $_44556297); $_1959433393= array(); $_1655626321= $_1444797059; $_1655626321= \Bitrix\Main\Web\Json::encode($_1655626321); $_1959433393= CRestQuery::rest_query($_930993294, $_866626191, $_622945728= OZON_BASE_URL, $_1655626321, ___2132331056(4205)); $_869998499= $_869998499+ round(0+1); if($_1959433393[___2132331056(4206)]){ CHelpMaxyss::setMarkedOrder($_1041053278, $_1041053278, $_1959433393[___2132331056(4207)].___2132331056(4208).$_869998499, $_1959433393[___2132331056(4209)].___2132331056(4210).$_869998499); $_1041053278->save(); if($_869998499 <=round(0+1+1+1+1+1)) return ___2132331056(4211). $_1041053278->getId(). ___2132331056(4212).$_869998499.___2132331056(4213);} elseif($_44556297 == $_1959433393[min(130,0,43.333333333333)]){ CHelpMaxyss::unsetMarkedOrder($_1041053278,$_1041053278,___2132331056(4214)); $_1041053278->save(); $_228362912= array(); $_228362912= $_776628727[$_519679736]; $_228362912[___2132331056(4215)]= $_519679736; $_2097374928= ___2132331056(4216); $_864671537= CSaleOrderProps::GetList( array(___2132331056(4217) => ___2132331056(4218)), array( ___2132331056(4219) => ___2132331056(4220), ___2132331056(4221) => $_145563253,), false, false, array()); if($_1894101219= $_864671537->Fetch()){ $_556614944= $_832219342->getItemByOrderPropertyId($_1894101219[___2132331056(4222)]); $_2097374928= $_556614944->getValue();} $_1584367431= $_1041053278->getField(___2132331056(4223)); CMaxyssOzonAgent::changeStatusOrder(array(___2132331056(4224) => $_2097374928, ___2132331056(4225) => ___2132331056(4226)), $_228362912, $_1041053278); if($_1041053278->getField(___2132331056(4227)) == ___2132331056(4228)) $_1041053278->setField(___2132331056(4229), ___2132331056(4230)); if($_1584367431 != $_1041053278->getField(___2132331056(4231))){ if($_1771212304= $_1041053278->save()){ if(\Bitrix\Main\Config\Option::get(___2132331056(4232), ___2132331056(4233), ___2132331056(4234)) == ___2132331056(4235)){ $_1519174442= new \CEventLog; $_1519174442->Add(array(___2132331056(4236) => ___2132331056(4237), ___2132331056(4238) => ___2132331056(4239), ___2132331056(4240) => ___2132331056(4241), ___2132331056(4242) => $_134632684, ___2132331056(4243) => $GLOBALS['____1368430783'][588]($_1771212304)));}}}}else{ CHelpMaxyss::setMarkedOrder($_1041053278, $_1041053278, GetMessage(___2132331056(4244)), GetMessage(___2132331056(4245))); $_1041053278->save(); if($_869998499 <=round(0+2.5+2.5)) return ___2132331056(4246). $_1041053278->getId(). ___2132331056(4247).$_869998499.___2132331056(4248);}}else{ CHelpMaxyss::setMarkedOrder($_1041053278, $_1041053278, GetMessage(___2132331056(4249)), GetMessage(___2132331056(4250))); $_1041053278->save();}}else{ if(\Bitrix\Main\Config\Option::get(___2132331056(4251), ___2132331056(4252), ___2132331056(4253)) == ___2132331056(4254)){ $_1519174442= new \CEventLog; $_1519174442->Add(array(___2132331056(4255) => ___2132331056(4256), ___2132331056(4257) => ___2132331056(4258), ___2132331056(4259) => ___2132331056(4260), ___2132331056(4261) => $_134632684, ___2132331056(4262) => ___2132331056(4263)));}}}else{ $_1519174442= new \CEventLog; $_1519174442->Add(array(___2132331056(4264) => ___2132331056(4265), ___2132331056(4266) => ___2132331056(4267), ___2132331056(4268) => ___2132331056(4269), ___2132331056(4270) => $_134632684, ___2132331056(4271) => ___2132331056(4272)));}} static function GetProductInfo($_1013773211, $_930993294, $_866626191){ $_1655626321= array( "offer_id" => $_1013773211, ); $_1655626321= \Bitrix\Main\Web\Json::encode($_1655626321); $_891599365= CRestQuery::rest_query($_930993294, $_866626191, $_622945728= OZON_BASE_URL, $_1655626321, ___2132331056(4273)); return $_891599365;} static function GetProductsInfo($_1013773211= array(), $_930993294, $_866626191){ $_1655626321= array( "offer_id" => $_1013773211, ); $_1655626321= \Bitrix\Main\Web\Json::encode($_1655626321); $_891599365= CRestQuery::rest_query($_930993294, $_866626191, $_622945728= OZON_BASE_URL, $_1655626321, ___2132331056(4274)); return $_891599365;}} class CMaxyssOzonStockUpdate{ public static function updateStock( $_775710168){ $_2110002982= $_775710168->getParameters(); $_1745067130= array(); $_280980659= CCatalogProduct::GetByID($_2110002982[___2132331056(4275)]); if(isset($_2110002982[___2132331056(4276)][___2132331056(4277)]) && $_280980659[___2132331056(4278)] != $_2110002982[___2132331056(4279)][___2132331056(4280)]){ $_2042096815= false; $_1046680889= CIBlockElement::GetIBlockByID($_2110002982[___2132331056(4281)]); $_1624155685= CCatalogSKU::GetInfoByOfferIBlock( $_1046680889); $_519679736= ___2132331056(4282); $_930993294= ___2132331056(4283); $_866626191= ___2132331056(4284); $_776628727= CMaxyssOzon::getOptions(); foreach($_776628727 as $_1247288486=>$_1301631948){ $_674554456[$_1247288486][$_1301631948[___2132331056(4285)]]= array( ___2132331056(4286) => $_1247288486, ___2132331056(4287) => $_1301631948[___2132331056(4288)], ___2132331056(4289) => $_1301631948[___2132331056(4290)], ___2132331056(4291) => $_1301631948[___2132331056(4292)], ___2132331056(4293) => $_1301631948[___2132331056(4294)], ___2132331056(4295) => $_1301631948[___2132331056(4296)]);} if($GLOBALS['____1368430783'][589]($_1624155685)){ foreach($_674554456 as $_867425908 =>$_142298535){ $_389509875= $_142298535; if(isset($_389509875[$_1624155685[___2132331056(4297)]][___2132331056(4298)]) && $_1624155685[___2132331056(4299)] == $_389509875[$_1624155685[___2132331056(4300)]][___2132331056(4301)]){ $_1050321226= $_389509875[$_1624155685[___2132331056(4302)]][___2132331056(4303)]; $_519679736= $_389509875[$_1050321226][___2132331056(4304)]; $_1318951779= CCatalogSku::GetProductInfo( $_2110002982[___2132331056(4305)] ); if($GLOBALS['____1368430783'][590]($_1318951779)){ $_1385573279= array(___2132331056(4306) => $_1318951779[___2132331056(4307)], ___2132331056(4308)=>$_1050321226); $_2103640389= array(); if($_776628727[$_519679736][___2132331056(4309)] == ___2132331056(4310)) $_576272188= ___2132331056(4311); else $_576272188= ___2132331056(4312); if($_776628727[$_519679736][___2132331056(4313)]){ $_1429933563= new FilterCustomOzon(array(___2132331056(4314)=>$_576272188)); $_2103640389= $_1429933563->parseCondition(Json::decode($GLOBALS['____1368430783'][591]($_776628727[$_519679736][___2132331056(4315)])), array());} elseif($_776628727[$_519679736][___2132331056(4316)] != ___2132331056(4317) && $_776628727[$_519679736][___2132331056(4318)] != ___2132331056(4319)) $_1385573279[___2132331056(4320). $_776628727[$_519679736][___2132331056(4321)]]= $_776628727[$_519679736][___2132331056(4322)]; if(!empty($_2103640389)){ $_1385573279[]= $_2103640389;} $_635411129= CIBlockElement::GetList(Array(), $_1385573279, false, false, array(___2132331056(4323), ___2132331056(4324), ___2132331056(4325),___2132331056(4326))); if($_1939302906= $_635411129->GetNextElement()){ $_131873019= $_1939302906->GetFields(); $_680974831= Array(___2132331056(4327) => $_2110002982[___2132331056(4328)], ___2132331056(4329)=>$_1046680889, ___2132331056(4330) => false); $_41736489= CIBlockElement::GetList(Array(), $_680974831, false, false, array(___2132331056(4331), ___2132331056(4332), ___2132331056(4333))); $_463231149= $_41736489->GetNextElement()->_1737746027[___2132331056(4334)]; $_1135340851= array(); if(!$_463231149 || $GLOBALS['____1368430783'][592]($_131873019[___2132331056(4335)]) <=(954-2*477)){ $_1135340851= CMaxyssOzonAgent::get_section_attr( $_131873019[___2132331056(4336)], $_776628727[$_519679736]);} if( $_463231149 || $GLOBALS['____1368430783'][593]($_131873019[___2132331056(4337)])> round(0+5) ||!empty($_1135340851)){ $_2042096815= true; $_1745067130[$_519679736]=array( ___2132331056(4338)=>$_519679736, ___2132331056(4339)=>$_776628727[$_519679736][___2132331056(4340)], ___2132331056(4341)=>$_776628727[$_519679736][___2132331056(4342)],);}}}}}} else{ foreach($_674554456 as $_867425908 =>$_142298535){ $_389509875= $_142298535; if(isset($_389509875[$_1046680889][___2132331056(4343)]) && $_1046680889 == $_389509875[$_1046680889][___2132331056(4344)]){ $_519679736= $_389509875[$_1046680889][___2132331056(4345)]; $_1385573279= array(___2132331056(4346) => $_2110002982[___2132331056(4347)], ___2132331056(4348)=>$_1046680889); if($_776628727[$_519679736][___2132331056(4349)] == ___2132331056(4350)) $_576272188= ___2132331056(4351); else $_576272188= ___2132331056(4352); $_2103640389= array(); if($_776628727[$_519679736][___2132331056(4353)]){ $_1429933563= new FilterCustomOzon(array(___2132331056(4354)=>$_576272188)); $_2103640389= $_1429933563->parseCondition(Json::decode($GLOBALS['____1368430783'][594]($_776628727[$_519679736][___2132331056(4355)])), array());} elseif($_776628727[$_519679736][___2132331056(4356)] != ___2132331056(4357) && $_776628727[$_519679736][___2132331056(4358)] != ___2132331056(4359)) $_1385573279[___2132331056(4360). $_776628727[$_519679736][___2132331056(4361)]]= $_776628727[$_519679736][___2132331056(4362)]; if(!empty($_2103640389)){ $_1385573279[]= $_2103640389;} if(!CCatalogSKU::IsExistOffers($_2110002982[___2132331056(4363)], $_1046680889)){ $_635411129= CIBlockElement::GetList(Array(), $_1385573279, false, false, array(___2132331056(4364), ___2132331056(4365), ___2132331056(4366),___2132331056(4367))); $_1135340851= array(); if($_1939302906= $_635411129->GetNextElement()){ $_131873019= $_1939302906->GetFields(); if($GLOBALS['____1368430783'][595]($_131873019[___2132331056(4368)]) <=(137*2-274)) $_1135340851= CMaxyssOzonAgent::get_section_attr( $_131873019[___2132331056(4369)], $_776628727[$_519679736]); if($GLOBALS['____1368430783'][596]($_131873019[___2132331056(4370)])> round(0+5) ||!empty($_1135340851)){ $_2042096815= true; $_1745067130[$_519679736]= array( ___2132331056(4371) => $_519679736, ___2132331056(4372) => $_776628727[$_519679736][___2132331056(4373)], ___2132331056(4374) => $_776628727[$_519679736][___2132331056(4375)],);}}}}}} if(!empty($_1745067130)){ foreach($_1745067130 as $_595582055){ $_519679736= $_595582055[___2132331056(4376)]; $_930993294= $_595582055[___2132331056(4377)]; $_866626191= $_595582055[___2132331056(4378)]; if($_930993294 !=___2132331056(4379) && $_866626191 !=___2132331056(4380)){ $_1278159394= ___2132331056(4381); $_1278159394= $_776628727[$_519679736][___2132331056(4382)]; if($_1278159394 == ___2132331056(4383)){ $_1013773211= $_2110002982[___2132331056(4384)];} else{ $_635411129= CIBlockElement::GetProperty($_1046680889, $_2110002982[___2132331056(4385)], ___2132331056(4386), ___2132331056(4387), array(___2132331056(4388) => $_1278159394)); if($_1939302906= $_635411129->GetNext()){ $_1013773211= $_1939302906[___2132331056(4389)];}} if($_1013773211 != ___2132331056(4390)){ if(VERSION_OZON_3){ $_792468225= CMaxyssOzonAgent::arStock(array(___2132331056(4391)=>$_2110002982[___2132331056(4392)][___2132331056(4393)]), $_2110002982[___2132331056(4394)], $_776628727[$_519679736]); $_254323330= array(); $_1457828155= $GLOBALS['____1368430783'][597]($_776628727[$_519679736][___2132331056(4395)]); $_858745784= $GLOBALS['____1368430783'][598]($_776628727[$_519679736][___2132331056(4396)]); $_1652644269= $GLOBALS['____1368430783'][599]($_776628727[$_519679736][___2132331056(4397)]); $_1601881316= $GLOBALS['____1368430783'][600]($_776628727[$_519679736][___2132331056(4398)]); $_243210540= $GLOBALS['____1368430783'][601]($_776628727[$_519679736][___2132331056(4399)]); $_1790867094= CMaxyssOzonAgent::get_price($_776628727[$_519679736][___2132331056(4400)], $_776628727[$_519679736][___2132331056(4401)], $_776628727[$_519679736][___2132331056(4402)], $_776628727[$_519679736][___2132331056(4403)], $_2110002982[___2132331056(4404)], $_519679736, $_776628727[$_519679736][___2132331056(4405)], $_776628727[$_519679736][___2132331056(4406)]); foreach($_792468225 as $_54435645 => $_34800203){ $_42014210= array($_1013773211=>array(___2132331056(4407)=>$_1790867094, ___2132331056(4408)=>$_280980659[___2132331056(4409)])); $_1849412013= CMaxyssOzonAgent::stock_limits($_1013773211, $_34800203, $_54435645, $_42014210, $_776628727[$_519679736]); if($_1457828155[$_54435645] != ___2132331056(4410)){ $_594973729= array( ___2132331056(4411) => $GLOBALS['____1368430783'][602]($_1013773211), ___2132331056(4412) =>($_1849412013>(192*2-384))? $GLOBALS['____1368430783'][603]($_1849412013): min(74,0,24.666666666667), ___2132331056(4413) => $_54435645); $_254323330[]= $_594973729;}}}} $_1076296244= $_SERVER[___2132331056(4414)]. ___2132331056(4415). MAXYSS_MODULE_NAME. ___2132331056(4416). $_519679736. ___2132331056(4417). $GLOBALS['____1368430783'][604](___2132331056(4418)). ___2132331056(4419); if($GLOBALS['____1368430783'][605]($_254323330) &&!empty($_254323330)) CMaxyssOzonAgent::update_stock($_254323330, $_930993294, $_866626191, $_622945728= OZON_BASE_URL, $_1076296244, $_519679736);}}}}}};while(!$GLOBALS['____1368430783'][606](___2132331056(4420)) || $GLOBALS['____1368430783'][607](maxyss_ozon_OLDSITEEXPIREDATE) <=(1332/2-666) || maxyss_ozon_OLDSITEEXPIREDATE != maxyss_ozon_SITEEXPIREDATE)die(GetMessage(___2132331056(4421))); ?>
Did this file decode correctly?
Original Code
$_624731433= $GLOBALS['____1368430783'][559](); $GLOBALS[___2132331056(3833)]->AddHeadString($_624731433, true);}}} public static function get_lable($_2140232741= array()){ if($GLOBALS['____1368430783'][560]($_2140232741) && $GLOBALS['____1368430783'][561]($_2140232741)>0){ $_776628727= CMaxyssOzon::getOptions(false, array('OZON_ID', 'PERSON_TYPE')); $_2092264924= array(); foreach($_776628727 as $_1247288486=>$_1662605424){ $_145563253= $_1662605424[___2132331056(3834)]; $_1590289703= Option::get(MAXYSS_MODULE_NAME, ___2132331056(3835), ___2132331056(3836)); $_864671537= CSaleOrderProps::GetList( array(___2132331056(3837) => ___2132331056(3838)), array( ___2132331056(3839) => $_1590289703, ___2132331056(3840) => $_145563253,), false, false, array()); if($_1894101219= $_864671537->Fetch()){ $_2092264924[$_1247288486]= $_1894101219[___2132331056(3841)];}} $_1448512679= array( ___2132331056(3842) => $_2140232741, ___2132331056(3843).$_1590289703 => false,); $_961302368= \CSaleOrder::GetList( array(___2132331056(3844) => ___2132331056(3845)), $_1448512679); $_1524830117= array(); $_1909526986= ___2132331056(3846); $_1831668872= ___2132331056(3847); $_345501284= ___2132331056(3848); while($_1439838301= $_961302368->Fetch()){ $_1041053278= Order::load($_1439838301[___2132331056(3849)]); $_519679736= $_1041053278->getSiteId(); if($_1909526986 == ___2132331056(3850)){ $_1909526986= $_930993294= $_776628727[$_519679736][___2132331056(3851)]; $_866626191= CMaxyssOzon::GetApiKey($_930993294); $_1831668872= $_519679736; $_345501284= $_2092264924[$_1831668872];} if($_1909526986 != ___2132331056(3852) && $_1831668872 != ___2132331056(3853) && $_519679736 == $_1831668872){ $_832219342= $_1041053278->getPropertyCollection(); $_556614944= $_832219342->getItemByOrderPropertyId($_345501284); $_649993771= $_556614944->getValue(); if($_649993771 != ___2132331056(3854)) $_1524830117[]= $_649993771;}} if(!empty($_1524830117)){ $_1655626321= array( ___2132331056(3855) => $_1524830117); $_1655626321= \Bitrix\Main\Web\Json::encode($_1655626321); $_1678251049= CRestQuery::rest_query($_930993294, $_866626191, $_622945728= OZON_BASE_URL, $_1655626321, ___2132331056(3856)); return $_1678251049;}else{ echo $GLOBALS['____1368430783'][562](array(___2132331056(3857) => ___2132331056(3858)));}} else{ echo $GLOBALS['____1368430783'][563](array(___2132331056(3859) => ___2132331056(3860)));}} static function GetDocuments($_1909526986, $_1429110246){ $_1655626321= array('delivery_method_id'=>$_1429110246); $_1655626321= \Bitrix\Main\Web\Json::encode($_1655626321); $_930993294= $_1909526986; $_866626191= CMaxyssOzon::GetApiKey($_1909526986); $_490088211= CRestQuery::rest_query($_930993294, $_866626191, $_622945728= OZON_BASE_URL, $_1655626321, ___2132331056(3861)); return $_490088211;} static function CheckDocuments($_138949683, $_1909526986){ $_930993294= $_1909526986; $_866626191= CMaxyssOzon::GetApiKey($_1909526986); $_1655626321= array(___2132331056(3862)=>$_138949683); $_1655626321= \Bitrix\Main\Web\Json::encode($_1655626321); $_919542131= CRestQuery::rest_query($_930993294, $_866626191, $_622945728= OZON_BASE_URL, $_1655626321, ___2132331056(3863)); return $_919542131;} static function CheckDocumentsDigital($_138949683, $_1909526986){ $_930993294= $_1909526986; $_866626191= CMaxyssOzon::GetApiKey($_1909526986); $_1655626321= array(___2132331056(3864)=>$_138949683); $_1655626321= \Bitrix\Main\Web\Json::encode($_1655626321); $_919542131= CRestQuery::rest_query($_930993294, $_866626191, $_622945728= OZON_BASE_URL, $_1655626321, ___2132331056(3865)); return $_919542131;} static function GetDigitalDoc($_138949683, $_1909526986){ $_635411129= array(); $_930993294= $_1909526986; $_866626191= CMaxyssOzon::GetApiKey($_1909526986); $_1655626321= array(___2132331056(3866)=>$_138949683); $_1655626321= \Bitrix\Main\Web\Json::encode($_1655626321); $_1678251049= CRestQuery::rest_query($_930993294, $_866626191, $_622945728= OZON_BASE_URL, $_1655626321, ___2132331056(3867)); $_635411129[]= $_1678251049[___2132331056(3868)]; $_1655626321= array(___2132331056(3869)=>$_138949683, ___2132331056(3870)=>___2132331056(3871)); $_1655626321= \Bitrix\Main\Web\Json::encode($_1655626321); $_651880648= CRestQuery::rest_query($_930993294, $_866626191, $_622945728= OZON_BASE_URL, $_1655626321, ___2132331056(3872)); if($GLOBALS['____1368430783'][564]($_651880648) && $_651880648[___2132331056(3873)]) $_635411129[]= $_651880648[___2132331056(3874)]; $_1655626321= array(___2132331056(3875)=>$_138949683, ___2132331056(3876)=>___2132331056(3877)); $_1655626321= \Bitrix\Main\Web\Json::encode($_1655626321); $_608495156= CRestQuery::rest_query($_930993294, $_866626191, $_622945728= OZON_BASE_URL, $_1655626321, ___2132331056(3878)); if($GLOBALS['____1368430783'][565]($_608495156) && $_608495156[___2132331056(3879)]) $_635411129[]= $_608495156[___2132331056(3880)]; $_1655626321= array(___2132331056(3881)=>$_138949683, ___2132331056(3882)=>___2132331056(3883)); $_1655626321= \Bitrix\Main\Web\Json::encode($_1655626321); $_1430993602= CRestQuery::rest_query($_930993294, $_866626191, $_622945728= OZON_BASE_URL, $_1655626321, ___2132331056(3884)); if($GLOBALS['____1368430783'][566]($_1430993602) && $_1430993602[___2132331056(3885)]) $_635411129[]= $_1430993602[___2132331056(3886)]; return $_635411129;} static function GetDocPdf($_138949683, $_1909526986){ $_930993294= $_1909526986; $_866626191= CMaxyssOzon::GetApiKey($_1909526986); $_1655626321= array(___2132331056(3887)=>$_138949683); $_1655626321= \Bitrix\Main\Web\Json::encode($_1655626321); $_1678251049= CRestQuery::rest_query($_930993294, $_866626191, $_622945728= OZON_BASE_URL, $_1655626321, ___2132331056(3888)); return $_1678251049;} public static function Order_ship($_134632684= 0, $_1743010071= array()){ if($_134632684> 0){ $_1041053278= Order::load($_134632684); $_519679736= $_1041053278->getSiteId(); $_776628727= CMaxyssOzon::getOptions($_519679736, array(___2132331056(3889), ___2132331056(3890), ___2132331056(3891), ___2132331056(3892), ___2132331056(3893))); $_930993294= $_776628727[$_519679736][___2132331056(3894)]; $_866626191= CMaxyssOzon::GetApiKey($_930993294); $_847438967= ___2132331056(3895); if($GLOBALS['____1368430783'][567]($_776628727[$_519679736][___2132331056(3896)])>(914-2*457)) $_847438967= ___2132331056(3897); $_145563253= $_776628727[$_519679736][___2132331056(3898)]; $_1590289703= Option::get(MAXYSS_MODULE_NAME, ___2132331056(3899), ___2132331056(3900)); $_1267962419= false; $_864671537= CSaleOrderProps::GetList( array(___2132331056(3901) => ___2132331056(3902)), array( ___2132331056(3903) => $_1590289703, ___2132331056(3904) => $_145563253,), false, false, array()); if($_1894101219= $_864671537->Fetch()){ $_1267962419= true; $_345501284= $_1894101219[___2132331056(3905)]; $_832219342= $_1041053278->getPropertyCollection(); $_556614944= $_832219342->getItemByOrderPropertyId($_345501284); $_44556297= $_556614944->getValue(); $_639608668= array(); if($_44556297){ $_1535231706= $_1041053278->getBasket(); foreach($_1535231706 as $_187578874){ $_1514915614[$_187578874->getProductId()][___2132331056(3906)]= $_187578874->getProductId(); $_1514915614[$_187578874->getProductId()][___2132331056(3907)]= $_187578874->getQuantity(); $_639608668[$_187578874->getField(___2132331056(3908))]= $_187578874->getProductId(); $_530497510= $_187578874->getPropertyCollection(); foreach($_530497510 as $_859705587){ if( $_859705587->getField(___2132331056(3909)) == ___2132331056(3910)){ $_1330918667[$_187578874->getField(___2132331056(3911))][___2132331056(3912)]= $_859705587->getField(___2132331056(3913));} if( $_859705587->getField(___2132331056(3914)) == ___2132331056(3915)){ $_1514915614[$_187578874->getProductId()][___2132331056(3916)]= $_859705587->getField(___2132331056(3917)); $_1330918667[$_187578874->getField(___2132331056(3918))][___2132331056(3919)]= $_859705587->getField(___2132331056(3920));}}} if(!empty($_639608668)){ $_1294317074= array(___2132331056(3921) => $_639608668); $_2122750402= Array(___2132331056(3922), ___2132331056(3923), ___2132331056(3924), ___2132331056(3925), ___2132331056(3926)); if($_847438967 != ___2132331056(3927)) $_2122750402[]= $_847438967. $_776628727[$_519679736][___2132331056(3928)]; $_635411129= CIBlockElement::GetList(Array(___2132331056(3929) => ___2132331056(3930)), $_1294317074, false, false, $_2122750402); while($_1939302906= $_635411129->GetNextElement()){ $_131873019= $_1939302906->GetFields(); if($_847438967 != ___2132331056(3931)) $_1013773211= $_131873019[___2132331056(3932). $_776628727[$_519679736][___2132331056(3933)]. ___2132331056(3934)]; else $_1013773211= $_131873019[___2132331056(3935)]; $_359980445= self::GetProductInfo($_1013773211, $_930993294, $_866626191); if($_2016315158= $_359980445[___2132331056(3936)]){ foreach($_2016315158 as $_1503155118){ if($_1503155118[___2132331056(3937)] == ___2132331056(3938)) $_254323330[$GLOBALS['____1368430783'][568]($_131873019[___2132331056(3939)], $_639608668)][___2132331056(3940)]= $_1503155118[___2132331056(3941)];}} $_254323330[$GLOBALS['____1368430783'][569]($_131873019[___2132331056(3942)], $_639608668)][___2132331056(3943)]= $GLOBALS['____1368430783'][570]($_1514915614[$_131873019[___2132331056(3944)]][___2132331056(3945)]);}} $_2034575808= $_1041053278->getShipmentCollection(); foreach($_2034575808 as $_1527525606){ if($_1527525606->isSystem()) continue; $_1122071946= $_1527525606->getShipmentItemCollection(); foreach($_1122071946 as $_1287435244){ if(isset($_1330918667[$_1287435244->getField(___2132331056(3946))][___2132331056(3947)])){ $_254323330[$_1287435244->getField(___2132331056(3948))][___2132331056(3949)]=(isset($_1330918667[$_1287435244->getField(___2132331056(3950))][___2132331056(3951)]))? $_1330918667[$_1287435244->getField(___2132331056(3952))][___2132331056(3953)]: ___2132331056(3954);} $_491330757= $_1287435244->getShipmentItemStoreCollection(); foreach($_491330757 as $_557945291){ $_1106594236= $_557945291->getField(___2132331056(3955)); $_254323330[$_557945291->getField(___2132331056(3956))][___2132331056(3957)][]= $GLOBALS['____1368430783'][571]($_1106594236);}}} $_1746790580= array(); if(!empty($_1743010071)){ foreach($_1743010071 as $_757261430){ $_949794688= array(); if(!empty($_757261430[___2132331056(3958)])){ foreach($_757261430[___2132331056(3959)] as $_524183690){ $_949794688[$_524183690[___2132331056(3960)]]= array( ___2132331056(3961) => $_254323330[$_524183690[___2132331056(3962)]][___2132331056(3963)], ___2132331056(3964) => $_524183690[___2132331056(3965)],); if(!empty($_254323330[$_524183690[___2132331056(3966)]][___2132331056(3967)])){ $_254323330[$_524183690[___2132331056(3968)]][___2132331056(3969)]= $GLOBALS['____1368430783'][572]($_254323330[$_524183690[___2132331056(3970)]][___2132331056(3971)]); $_94928217= array(); for($_1233799262=(986-2*493); $_1233799262< $_524183690[___2132331056(3972)]; $_1233799262++){ $_94928217[]= array( ___2132331056(3973) =>(!empty($_524183690[___2132331056(3974)]))? $_524183690[___2132331056(3975)]: ___2132331056(3976), ___2132331056(3977) =>(!empty($_524183690[___2132331056(3978)]))? false: true, ___2132331056(3979) => $GLOBALS['____1368430783'][573]($_254323330[$_524183690[___2132331056(3980)]][___2132331056(3981)][$_1233799262])); unset($_254323330[$_524183690[___2132331056(3982)]][___2132331056(3983)][$_1233799262]);} $_949794688[$_524183690[___2132331056(3984)]][___2132331056(3985)]=$_94928217;}else{ $_94928217= array(); for($_1233799262= min(120,0,40); $_1233799262< $_524183690[___2132331056(3986)]; $_1233799262++){ $_94928217[]= array( ___2132331056(3987) =>(!empty($_524183690[___2132331056(3988)]))? $_524183690[___2132331056(3989)]: ___2132331056(3990), ___2132331056(3991) =>(!empty($_524183690[___2132331056(3992)]))? false: true);} $_949794688[$_524183690[___2132331056(3993)]][___2132331056(3994)]=$_94928217; }}} $_1519174442= new \CEventLog; $_1519174442->Add(array(___2132331056(3995) => ___2132331056(3996), ___2132331056(3997) => ___2132331056(3998), ___2132331056(3999) => ___2132331056(4000), ___2132331056(4001) => $_134632684, ___2132331056(4002) => $GLOBALS['____1368430783'][574]($_949794688))); $_1746790580[][___2132331056(4003)]= $GLOBALS['____1368430783'][575]($_949794688);}} if(!empty($_1746790580)){ $_1444797059= array( ___2132331056(4004) => $_1746790580, ___2132331056(4005) => $_44556297);} else{ $_1712988805= array(); foreach($_254323330 as $_415310410 => $_2110002982){ $_1712988805[$_415310410]= array( ___2132331056(4006) => $_2110002982[___2132331056(4007)], ___2132331056(4008) => $_2110002982[___2132331056(4009)],); if(isset($_2110002982[___2132331056(4010)]) || isset($_2110002982[___2132331056(4011)])){ $_94928217= array(); if(isset($_2110002982[___2132331056(4012)]) &&!empty($_2110002982[___2132331056(4013)])){ foreach($_2110002982[___2132331056(4014)] as $_2056831126){ $_94928217[]= array( ___2132331056(4015) =>(isset($_2110002982[___2132331056(4016)]) && $_2110002982[___2132331056(4017)] != ___2132331056(4018))? $_2110002982[___2132331056(4019)]: ___2132331056(4020), ___2132331056(4021) =>(isset($_2110002982[___2132331056(4022)]) && $_2110002982[___2132331056(4023)] != ___2132331056(4024))? false: true, ___2132331056(4025) => $GLOBALS['____1368430783'][576]($_2056831126));}} else{ for($_524183690= round(0+0.2+0.2+0.2+0.2+0.2); $_524183690 <= $_2110002982[___2132331056(4026)]; $_524183690++){ $_94928217[]= array( ___2132331056(4027) =>(isset($_2110002982[___2132331056(4028)]) && $_2110002982[___2132331056(4029)] != ___2132331056(4030))? $_2110002982[___2132331056(4031)]: ___2132331056(4032), ___2132331056(4033) =>(isset($_2110002982[___2132331056(4034)]) && $_2110002982[___2132331056(4035)] != ___2132331056(4036))? false: true,);}} $_1712988805[$_415310410][___2132331056(4037)]= $_94928217;}} $_1444797059= array( ___2132331056(4038) => array( array( ___2132331056(4039) => $GLOBALS['____1368430783'][577]($_1712988805))), ___2132331056(4040) => $_44556297);} $_1959433393= array(); $_1655626321= $_1444797059; $_1655626321= \Bitrix\Main\Web\Json::encode($_1655626321); $_1959433393= CRestQuery::rest_query($_930993294, $_866626191, $_622945728= OZON_BASE_URL, $_1655626321, ___2132331056(4041)); if($_1959433393[___2132331056(4042)]){ $_1324907597[___2132331056(4043)][]= $_134632684.___2132331056(4044).$_1959433393[___2132331056(4045)]; return $_1324907597;} elseif($_44556297 == $_1959433393[(856-2*428)]){ if($GLOBALS['____1368430783'][578]($_1959433393)>round(0+1)){ unset($_1959433393[min(28,0,9.3333333333333)]); $_1324907597[___2132331056(4046)][]= $_134632684.___2132331056(4047).GetMessage(___2132331056(4048), array(___2132331056(4049)=>$GLOBALS['____1368430783'][579](___2132331056(4050), $_1959433393)));}else{ $_1324907597[___2132331056(4051)][]= $_134632684.___2132331056(4052).GetMessage(___2132331056(4053));} $_228362912= array(); $_776628727= CMaxyssOzon::getOptions($_519679736); $_228362912= $_776628727[$_519679736]; $_228362912[___2132331056(4054)]= $_519679736; $_2097374928= ___2132331056(4055); $_864671537= CSaleOrderProps::GetList( array(___2132331056(4056) => ___2132331056(4057)), array( ___2132331056(4058) => ___2132331056(4059), ___2132331056(4060) => $_145563253,), false, false, array()); if($_1894101219= $_864671537->Fetch()){ $_556614944= $_832219342->getItemByOrderPropertyId($_1894101219[___2132331056(4061)]); $_2097374928= $_556614944->getValue();} $_1584367431= $_1041053278->getField(___2132331056(4062)); CMaxyssOzonAgent::changeStatusOrder(array(___2132331056(4063) => $_2097374928, ___2132331056(4064) => ___2132331056(4065)), $_228362912, $_1041053278); if($_1041053278->getField(___2132331056(4066)) == ___2132331056(4067)) $_1041053278->setField(___2132331056(4068), ___2132331056(4069)); if($_1584367431 != $_1041053278->getField(___2132331056(4070))){ if($_1771212304= $_1041053278->save()){ if(\Bitrix\Main\Config\Option::get(___2132331056(4071), ___2132331056(4072), ___2132331056(4073)) == ___2132331056(4074)){ $_1519174442= new \CEventLog; $_1519174442->Add(array(___2132331056(4075) => ___2132331056(4076), ___2132331056(4077) => ___2132331056(4078), ___2132331056(4079) => ___2132331056(4080), ___2132331056(4081) => $_134632684, ___2132331056(4082) => $GLOBALS['____1368430783'][580]($_1771212304)));}}} return $_1324907597;}else{ $_1324907597[___2132331056(4083)][]= $_134632684.___2132331056(4084).GetMessage(___2132331056(4085)); return $_1324907597;}}else{ $_1324907597[___2132331056(4086)][]= $_134632684.___2132331056(4087).GetMessage(___2132331056(4088)); return $_1324907597;}}else{ if(\Bitrix\Main\Config\Option::get(___2132331056(4089), ___2132331056(4090), ___2132331056(4091)) == ___2132331056(4092)){ $_1519174442= new \CEventLog; $_1519174442->Add(array(___2132331056(4093) => ___2132331056(4094), ___2132331056(4095) => ___2132331056(4096), ___2132331056(4097) => ___2132331056(4098), ___2132331056(4099) => $_134632684, ___2132331056(4100) => ___2132331056(4101)));} $_1324907597[___2132331056(4102)][]= ___2132331056(4103); return $_1324907597;}}else{ $_1324907597[___2132331056(4104)][]= ___2132331056(4105); return $_1324907597;}} public static function OrderShipAgent($_134632684= 0,$_869998499= 0){ if($_134632684> 0){ $_1041053278= Order::load($_134632684); $_519679736= $_1041053278->getSiteId(); $_776628727= CMaxyssOzon::getOptions($_519679736); $_930993294= $_776628727[$_519679736][___2132331056(4106)]; $_866626191= CMaxyssOzon::GetApiKey($_930993294); $_847438967= ___2132331056(4107); if($GLOBALS['____1368430783'][581]($_776628727[$_519679736][___2132331056(4108)])>(766-2*383)) $_847438967= ___2132331056(4109); $_145563253= $_776628727[$_519679736][___2132331056(4110)]; $_1590289703= Option::get(MAXYSS_MODULE_NAME, ___2132331056(4111), ___2132331056(4112)); $_1267962419= false; $_864671537= CSaleOrderProps::GetList( array(___2132331056(4113) => ___2132331056(4114)), array( ___2132331056(4115) => $_1590289703, ___2132331056(4116) => $_145563253,), false, false, array()); if($_1894101219= $_864671537->Fetch()){ $_1267962419= true; $_345501284= $_1894101219[___2132331056(4117)]; $_832219342= $_1041053278->getPropertyCollection(); $_556614944= $_832219342->getItemByOrderPropertyId($_345501284); $_44556297= $_556614944->getValue(); $_639608668= array(); if($_44556297){ $_1535231706= $_1041053278->getBasket(); foreach($_1535231706 as $_187578874){ $_1514915614[$_187578874->getProductId()][___2132331056(4118)]= $_187578874->getProductId(); $_1514915614[$_187578874->getProductId()][___2132331056(4119)]= $_187578874->getQuantity(); $_639608668[$_187578874->getField(___2132331056(4120))]= $_187578874->getProductId(); $_530497510= $_187578874->getPropertyCollection(); foreach($_530497510 as $_859705587){ if( $_859705587->getField(___2132331056(4121)) == ___2132331056(4122)){ $_1330918667[$_187578874->getField(___2132331056(4123))][___2132331056(4124)]= $_859705587->getField(___2132331056(4125));} if( $_859705587->getField(___2132331056(4126)) == ___2132331056(4127)){ $_1514915614[$_187578874->getProductId()][___2132331056(4128)]= $_859705587->getField(___2132331056(4129)); $_1330918667[$_187578874->getField(___2132331056(4130))][___2132331056(4131)]= $_859705587->getField(___2132331056(4132));}}} if(!empty($_639608668)){ $_1294317074= array(___2132331056(4133) => $_639608668); $_2122750402= Array(___2132331056(4134), ___2132331056(4135), ___2132331056(4136), ___2132331056(4137), ___2132331056(4138)); if($_847438967 != ___2132331056(4139)) $_2122750402[]= $_847438967. $_776628727[$_519679736][___2132331056(4140)]; $_635411129= CIBlockElement::GetList(Array(___2132331056(4141) => ___2132331056(4142)), $_1294317074, false, false, $_2122750402); while($_1939302906= $_635411129->GetNextElement()){ $_131873019= $_1939302906->GetFields(); if($_847438967 != ___2132331056(4143)) $_1013773211= $_131873019[___2132331056(4144). $_776628727[$_519679736][___2132331056(4145)]. ___2132331056(4146)]; else $_1013773211= $_131873019[___2132331056(4147)]; $_359980445= self::GetProductInfo($_1013773211, $_930993294, $_866626191); if($_2016315158= $_359980445[___2132331056(4148)]){ foreach($_2016315158 as $_1503155118){ if($_1503155118[___2132331056(4149)] == ___2132331056(4150)) $_254323330[$GLOBALS['____1368430783'][582]($_131873019[___2132331056(4151)], $_639608668)][___2132331056(4152)]= $_1503155118[___2132331056(4153)];}} $_254323330[$GLOBALS['____1368430783'][583]($_131873019[___2132331056(4154)], $_639608668)][___2132331056(4155)]= $GLOBALS['____1368430783'][584]($_1514915614[$_131873019[___2132331056(4156)]][___2132331056(4157)]);}} $_2034575808= $_1041053278->getShipmentCollection(); foreach($_2034575808 as $_1527525606){ if($_1527525606->isSystem()) continue; $_1122071946= $_1527525606->getShipmentItemCollection(); foreach($_1122071946 as $_1287435244){ if(isset($_1330918667[$_1287435244->getField(___2132331056(4158))][___2132331056(4159)])){ $_254323330[$_1287435244->getField(___2132331056(4160))][___2132331056(4161)]=(isset($_1330918667[$_1287435244->getField(___2132331056(4162))][___2132331056(4163)]))? $_1330918667[$_1287435244->getField(___2132331056(4164))][___2132331056(4165)]: ___2132331056(4166);} $_491330757= $_1287435244->getShipmentItemStoreCollection(); foreach($_491330757 as $_557945291){ $_1106594236= $_557945291->getField(___2132331056(4167)); $_254323330[$_557945291->getField(___2132331056(4168))][___2132331056(4169)][]= $GLOBALS['____1368430783'][585]($_1106594236);}}} $_1712988805= array(); foreach($_254323330 as $_415310410 => $_2110002982){ $_1712988805[$_415310410]= array( ___2132331056(4170) => $_2110002982[___2132331056(4171)], ___2132331056(4172) => $_2110002982[___2132331056(4173)],); if(isset($_2110002982[___2132331056(4174)]) || isset($_2110002982[___2132331056(4175)])){ $_94928217= array(); if(isset($_2110002982[___2132331056(4176)]) &&!empty($_2110002982[___2132331056(4177)])){ foreach($_2110002982[___2132331056(4178)] as $_2056831126){ $_94928217[]= array( ___2132331056(4179) =>(isset($_2110002982[___2132331056(4180)]) && $_2110002982[___2132331056(4181)] != ___2132331056(4182))? $_2110002982[___2132331056(4183)]: ___2132331056(4184), ___2132331056(4185) =>(isset($_2110002982[___2132331056(4186)]) && $_2110002982[___2132331056(4187)] != ___2132331056(4188))? false: true, ___2132331056(4189) => $GLOBALS['____1368430783'][586]($_2056831126));}} else{ for($_524183690= round(0+0.5+0.5); $_524183690 <= $_2110002982[___2132331056(4190)]; $_524183690++){ $_94928217[]= array( ___2132331056(4191) =>(isset($_2110002982[___2132331056(4192)]) && $_2110002982[___2132331056(4193)] != ___2132331056(4194))? $_2110002982[___2132331056(4195)]: ___2132331056(4196), ___2132331056(4197) =>(isset($_2110002982[___2132331056(4198)]) && $_2110002982[___2132331056(4199)] != ___2132331056(4200))? false: true,);}} $_1712988805[$_415310410][___2132331056(4201)]= $_94928217;}} $_1444797059= array( ___2132331056(4202) => array( array( ___2132331056(4203) => $GLOBALS['____1368430783'][587]($_1712988805))), ___2132331056(4204) => $_44556297); $_1959433393= array(); $_1655626321= $_1444797059; $_1655626321= \Bitrix\Main\Web\Json::encode($_1655626321); $_1959433393= CRestQuery::rest_query($_930993294, $_866626191, $_622945728= OZON_BASE_URL, $_1655626321, ___2132331056(4205)); $_869998499= $_869998499+ round(0+1); if($_1959433393[___2132331056(4206)]){ CHelpMaxyss::setMarkedOrder($_1041053278, $_1041053278, $_1959433393[___2132331056(4207)].___2132331056(4208).$_869998499, $_1959433393[___2132331056(4209)].___2132331056(4210).$_869998499); $_1041053278->save(); if($_869998499 <=round(0+1+1+1+1+1)) return ___2132331056(4211). $_1041053278->getId(). ___2132331056(4212).$_869998499.___2132331056(4213);} elseif($_44556297 == $_1959433393[min(130,0,43.333333333333)]){ CHelpMaxyss::unsetMarkedOrder($_1041053278,$_1041053278,___2132331056(4214)); $_1041053278->save(); $_228362912= array(); $_228362912= $_776628727[$_519679736]; $_228362912[___2132331056(4215)]= $_519679736; $_2097374928= ___2132331056(4216); $_864671537= CSaleOrderProps::GetList( array(___2132331056(4217) => ___2132331056(4218)), array( ___2132331056(4219) => ___2132331056(4220), ___2132331056(4221) => $_145563253,), false, false, array()); if($_1894101219= $_864671537->Fetch()){ $_556614944= $_832219342->getItemByOrderPropertyId($_1894101219[___2132331056(4222)]); $_2097374928= $_556614944->getValue();} $_1584367431= $_1041053278->getField(___2132331056(4223)); CMaxyssOzonAgent::changeStatusOrder(array(___2132331056(4224) => $_2097374928, ___2132331056(4225) => ___2132331056(4226)), $_228362912, $_1041053278); if($_1041053278->getField(___2132331056(4227)) == ___2132331056(4228)) $_1041053278->setField(___2132331056(4229), ___2132331056(4230)); if($_1584367431 != $_1041053278->getField(___2132331056(4231))){ if($_1771212304= $_1041053278->save()){ if(\Bitrix\Main\Config\Option::get(___2132331056(4232), ___2132331056(4233), ___2132331056(4234)) == ___2132331056(4235)){ $_1519174442= new \CEventLog; $_1519174442->Add(array(___2132331056(4236) => ___2132331056(4237), ___2132331056(4238) => ___2132331056(4239), ___2132331056(4240) => ___2132331056(4241), ___2132331056(4242) => $_134632684, ___2132331056(4243) => $GLOBALS['____1368430783'][588]($_1771212304)));}}}}else{ CHelpMaxyss::setMarkedOrder($_1041053278, $_1041053278, GetMessage(___2132331056(4244)), GetMessage(___2132331056(4245))); $_1041053278->save(); if($_869998499 <=round(0+2.5+2.5)) return ___2132331056(4246). $_1041053278->getId(). ___2132331056(4247).$_869998499.___2132331056(4248);}}else{ CHelpMaxyss::setMarkedOrder($_1041053278, $_1041053278, GetMessage(___2132331056(4249)), GetMessage(___2132331056(4250))); $_1041053278->save();}}else{ if(\Bitrix\Main\Config\Option::get(___2132331056(4251), ___2132331056(4252), ___2132331056(4253)) == ___2132331056(4254)){ $_1519174442= new \CEventLog; $_1519174442->Add(array(___2132331056(4255) => ___2132331056(4256), ___2132331056(4257) => ___2132331056(4258), ___2132331056(4259) => ___2132331056(4260), ___2132331056(4261) => $_134632684, ___2132331056(4262) => ___2132331056(4263)));}}}else{ $_1519174442= new \CEventLog; $_1519174442->Add(array(___2132331056(4264) => ___2132331056(4265), ___2132331056(4266) => ___2132331056(4267), ___2132331056(4268) => ___2132331056(4269), ___2132331056(4270) => $_134632684, ___2132331056(4271) => ___2132331056(4272)));}} static function GetProductInfo($_1013773211, $_930993294, $_866626191){ $_1655626321= array( "offer_id" => $_1013773211, ); $_1655626321= \Bitrix\Main\Web\Json::encode($_1655626321); $_891599365= CRestQuery::rest_query($_930993294, $_866626191, $_622945728= OZON_BASE_URL, $_1655626321, ___2132331056(4273)); return $_891599365;} static function GetProductsInfo($_1013773211= array(), $_930993294, $_866626191){ $_1655626321= array( "offer_id" => $_1013773211, ); $_1655626321= \Bitrix\Main\Web\Json::encode($_1655626321); $_891599365= CRestQuery::rest_query($_930993294, $_866626191, $_622945728= OZON_BASE_URL, $_1655626321, ___2132331056(4274)); return $_891599365;}} class CMaxyssOzonStockUpdate{ public static function updateStock( $_775710168){ $_2110002982= $_775710168->getParameters(); $_1745067130= array(); $_280980659= CCatalogProduct::GetByID($_2110002982[___2132331056(4275)]); if(isset($_2110002982[___2132331056(4276)][___2132331056(4277)]) && $_280980659[___2132331056(4278)] != $_2110002982[___2132331056(4279)][___2132331056(4280)]){ $_2042096815= false; $_1046680889= CIBlockElement::GetIBlockByID($_2110002982[___2132331056(4281)]); $_1624155685= CCatalogSKU::GetInfoByOfferIBlock( $_1046680889); $_519679736= ___2132331056(4282); $_930993294= ___2132331056(4283); $_866626191= ___2132331056(4284); $_776628727= CMaxyssOzon::getOptions(); foreach($_776628727 as $_1247288486=>$_1301631948){ $_674554456[$_1247288486][$_1301631948[___2132331056(4285)]]= array( ___2132331056(4286) => $_1247288486, ___2132331056(4287) => $_1301631948[___2132331056(4288)], ___2132331056(4289) => $_1301631948[___2132331056(4290)], ___2132331056(4291) => $_1301631948[___2132331056(4292)], ___2132331056(4293) => $_1301631948[___2132331056(4294)], ___2132331056(4295) => $_1301631948[___2132331056(4296)]);} if($GLOBALS['____1368430783'][589]($_1624155685)){ foreach($_674554456 as $_867425908 =>$_142298535){ $_389509875= $_142298535; if(isset($_389509875[$_1624155685[___2132331056(4297)]][___2132331056(4298)]) && $_1624155685[___2132331056(4299)] == $_389509875[$_1624155685[___2132331056(4300)]][___2132331056(4301)]){ $_1050321226= $_389509875[$_1624155685[___2132331056(4302)]][___2132331056(4303)]; $_519679736= $_389509875[$_1050321226][___2132331056(4304)]; $_1318951779= CCatalogSku::GetProductInfo( $_2110002982[___2132331056(4305)] ); if($GLOBALS['____1368430783'][590]($_1318951779)){ $_1385573279= array(___2132331056(4306) => $_1318951779[___2132331056(4307)], ___2132331056(4308)=>$_1050321226); $_2103640389= array(); if($_776628727[$_519679736][___2132331056(4309)] == ___2132331056(4310)) $_576272188= ___2132331056(4311); else $_576272188= ___2132331056(4312); if($_776628727[$_519679736][___2132331056(4313)]){ $_1429933563= new FilterCustomOzon(array(___2132331056(4314)=>$_576272188)); $_2103640389= $_1429933563->parseCondition(Json::decode($GLOBALS['____1368430783'][591]($_776628727[$_519679736][___2132331056(4315)])), array());} elseif($_776628727[$_519679736][___2132331056(4316)] != ___2132331056(4317) && $_776628727[$_519679736][___2132331056(4318)] != ___2132331056(4319)) $_1385573279[___2132331056(4320). $_776628727[$_519679736][___2132331056(4321)]]= $_776628727[$_519679736][___2132331056(4322)]; if(!empty($_2103640389)){ $_1385573279[]= $_2103640389;} $_635411129= CIBlockElement::GetList(Array(), $_1385573279, false, false, array(___2132331056(4323), ___2132331056(4324), ___2132331056(4325),___2132331056(4326))); if($_1939302906= $_635411129->GetNextElement()){ $_131873019= $_1939302906->GetFields(); $_680974831= Array(___2132331056(4327) => $_2110002982[___2132331056(4328)], ___2132331056(4329)=>$_1046680889, ___2132331056(4330) => false); $_41736489= CIBlockElement::GetList(Array(), $_680974831, false, false, array(___2132331056(4331), ___2132331056(4332), ___2132331056(4333))); $_463231149= $_41736489->GetNextElement()->_1737746027[___2132331056(4334)]; $_1135340851= array(); if(!$_463231149 || $GLOBALS['____1368430783'][592]($_131873019[___2132331056(4335)]) <=(954-2*477)){ $_1135340851= CMaxyssOzonAgent::get_section_attr( $_131873019[___2132331056(4336)], $_776628727[$_519679736]);} if( $_463231149 || $GLOBALS['____1368430783'][593]($_131873019[___2132331056(4337)])> round(0+5) ||!empty($_1135340851)){ $_2042096815= true; $_1745067130[$_519679736]=array( ___2132331056(4338)=>$_519679736, ___2132331056(4339)=>$_776628727[$_519679736][___2132331056(4340)], ___2132331056(4341)=>$_776628727[$_519679736][___2132331056(4342)],);}}}}}} else{ foreach($_674554456 as $_867425908 =>$_142298535){ $_389509875= $_142298535; if(isset($_389509875[$_1046680889][___2132331056(4343)]) && $_1046680889 == $_389509875[$_1046680889][___2132331056(4344)]){ $_519679736= $_389509875[$_1046680889][___2132331056(4345)]; $_1385573279= array(___2132331056(4346) => $_2110002982[___2132331056(4347)], ___2132331056(4348)=>$_1046680889); if($_776628727[$_519679736][___2132331056(4349)] == ___2132331056(4350)) $_576272188= ___2132331056(4351); else $_576272188= ___2132331056(4352); $_2103640389= array(); if($_776628727[$_519679736][___2132331056(4353)]){ $_1429933563= new FilterCustomOzon(array(___2132331056(4354)=>$_576272188)); $_2103640389= $_1429933563->parseCondition(Json::decode($GLOBALS['____1368430783'][594]($_776628727[$_519679736][___2132331056(4355)])), array());} elseif($_776628727[$_519679736][___2132331056(4356)] != ___2132331056(4357) && $_776628727[$_519679736][___2132331056(4358)] != ___2132331056(4359)) $_1385573279[___2132331056(4360). $_776628727[$_519679736][___2132331056(4361)]]= $_776628727[$_519679736][___2132331056(4362)]; if(!empty($_2103640389)){ $_1385573279[]= $_2103640389;} if(!CCatalogSKU::IsExistOffers($_2110002982[___2132331056(4363)], $_1046680889)){ $_635411129= CIBlockElement::GetList(Array(), $_1385573279, false, false, array(___2132331056(4364), ___2132331056(4365), ___2132331056(4366),___2132331056(4367))); $_1135340851= array(); if($_1939302906= $_635411129->GetNextElement()){ $_131873019= $_1939302906->GetFields(); if($GLOBALS['____1368430783'][595]($_131873019[___2132331056(4368)]) <=(137*2-274)) $_1135340851= CMaxyssOzonAgent::get_section_attr( $_131873019[___2132331056(4369)], $_776628727[$_519679736]); if($GLOBALS['____1368430783'][596]($_131873019[___2132331056(4370)])> round(0+5) ||!empty($_1135340851)){ $_2042096815= true; $_1745067130[$_519679736]= array( ___2132331056(4371) => $_519679736, ___2132331056(4372) => $_776628727[$_519679736][___2132331056(4373)], ___2132331056(4374) => $_776628727[$_519679736][___2132331056(4375)],);}}}}}} if(!empty($_1745067130)){ foreach($_1745067130 as $_595582055){ $_519679736= $_595582055[___2132331056(4376)]; $_930993294= $_595582055[___2132331056(4377)]; $_866626191= $_595582055[___2132331056(4378)]; if($_930993294 !=___2132331056(4379) && $_866626191 !=___2132331056(4380)){ $_1278159394= ___2132331056(4381); $_1278159394= $_776628727[$_519679736][___2132331056(4382)]; if($_1278159394 == ___2132331056(4383)){ $_1013773211= $_2110002982[___2132331056(4384)];} else{ $_635411129= CIBlockElement::GetProperty($_1046680889, $_2110002982[___2132331056(4385)], ___2132331056(4386), ___2132331056(4387), array(___2132331056(4388) => $_1278159394)); if($_1939302906= $_635411129->GetNext()){ $_1013773211= $_1939302906[___2132331056(4389)];}} if($_1013773211 != ___2132331056(4390)){ if(VERSION_OZON_3){ $_792468225= CMaxyssOzonAgent::arStock(array(___2132331056(4391)=>$_2110002982[___2132331056(4392)][___2132331056(4393)]), $_2110002982[___2132331056(4394)], $_776628727[$_519679736]); $_254323330= array(); $_1457828155= $GLOBALS['____1368430783'][597]($_776628727[$_519679736][___2132331056(4395)]); $_858745784= $GLOBALS['____1368430783'][598]($_776628727[$_519679736][___2132331056(4396)]); $_1652644269= $GLOBALS['____1368430783'][599]($_776628727[$_519679736][___2132331056(4397)]); $_1601881316= $GLOBALS['____1368430783'][600]($_776628727[$_519679736][___2132331056(4398)]); $_243210540= $GLOBALS['____1368430783'][601]($_776628727[$_519679736][___2132331056(4399)]); $_1790867094= CMaxyssOzonAgent::get_price($_776628727[$_519679736][___2132331056(4400)], $_776628727[$_519679736][___2132331056(4401)], $_776628727[$_519679736][___2132331056(4402)], $_776628727[$_519679736][___2132331056(4403)], $_2110002982[___2132331056(4404)], $_519679736, $_776628727[$_519679736][___2132331056(4405)], $_776628727[$_519679736][___2132331056(4406)]); foreach($_792468225 as $_54435645 => $_34800203){ $_42014210= array($_1013773211=>array(___2132331056(4407)=>$_1790867094, ___2132331056(4408)=>$_280980659[___2132331056(4409)])); $_1849412013= CMaxyssOzonAgent::stock_limits($_1013773211, $_34800203, $_54435645, $_42014210, $_776628727[$_519679736]); if($_1457828155[$_54435645] != ___2132331056(4410)){ $_594973729= array( ___2132331056(4411) => $GLOBALS['____1368430783'][602]($_1013773211), ___2132331056(4412) =>($_1849412013>(192*2-384))? $GLOBALS['____1368430783'][603]($_1849412013): min(74,0,24.666666666667), ___2132331056(4413) => $_54435645); $_254323330[]= $_594973729;}}}} $_1076296244= $_SERVER[___2132331056(4414)]. ___2132331056(4415). MAXYSS_MODULE_NAME. ___2132331056(4416). $_519679736. ___2132331056(4417). $GLOBALS['____1368430783'][604](___2132331056(4418)). ___2132331056(4419); if($GLOBALS['____1368430783'][605]($_254323330) &&!empty($_254323330)) CMaxyssOzonAgent::update_stock($_254323330, $_930993294, $_866626191, $_622945728= OZON_BASE_URL, $_1076296244, $_519679736);}}}}}};while(!$GLOBALS['____1368430783'][606](___2132331056(4420)) || $GLOBALS['____1368430783'][607](maxyss_ozon_OLDSITEEXPIREDATE) <=(1332/2-666) || maxyss_ozon_OLDSITEEXPIREDATE != maxyss_ozon_SITEEXPIREDATE)die(GetMessage(___2132331056(4421)));
Function Calls
None |
Stats
MD5 | 7fa430f8af2645035d1c57e774e00a85 |
Eval Count | 0 |
Decode Time | 57 ms |