]> gitweb.erp-flowers.ru Git - erp24_rep/yii-erp24/.git/commitdiff
[ERP-200] уборка мусора origin/feature_smirnov_erp-200_responsible_user_in_orders_amo
authorAlexander Smirnov <fredeom@mail.ru>
Thu, 26 Sep 2024 15:46:55 +0000 (18:46 +0300)
committerAlexander Smirnov <fredeom@mail.ru>
Thu, 26 Sep 2024 15:46:55 +0000 (18:46 +0300)
erp24/api1/views/cron/amo142.php

index 29b258b32e2da376c51434af3c6424ed605f8af8..2cbad0745b8864efe3ed46f2db939bdb07099bb8 100644 (file)
@@ -95,17 +95,6 @@ function get_users_amo() {
     return $row;
 }
 
-function get_user_amo($userId) {
-    global $ACCESS_TOKEN;
-    $row = [];
-    if(!empty($ACCESS_TOKEN)) {
-        $user = amo_rest($ACCESS_TOKEN, '/api/v4/users/' . $userId, 'GET', []);
-        return $user;
-    }
-    return $row;
-}
-
-
 function get_contacts_amo($amo_id) {
     global $ACCESS_TOKEN;
     $row=array();
@@ -416,7 +405,6 @@ $delivery__date .='&filter[custom_fields_values][647935][from]='.$unix_delivery_
            "phone_source"=>$sourcephone,
            "email"=>$main_email,*/
 
-            //$user = get_user_amo($fieldarr["responsible_user_id"]);
             // добавляем к контакту базовые поля и тэги
             $result = array_merge(
                 $conacts_arr,