Created
September 1, 2021 10:03
-
-
Save danielborzov/328e7a8b5482ec995986c5aac0ced614 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/app/addons/rus_pickpoint/Tygh/Shippings/RusPickpoint.php b/app/addons/rus_pickpoint/Tygh/Shippings/RusPickpoint.php | |
index acac8464fa..c284bca688 100644 | |
--- a/app/addons/rus_pickpoint/Tygh/Shippings/RusPickpoint.php | |
+++ b/app/addons/rus_pickpoint/Tygh/Shippings/RusPickpoint.php | |
@@ -93,35 +93,6 @@ class RusPickpoint | |
return $return; | |
} | |
- /** | |
- * Performs logout operation from Pickpoint remote service. | |
- * | |
- * @return bool|string | |
- */ | |
- public static function logout() | |
- { | |
- $sid = self::$sid; | |
- $url = self::$url; | |
- $data_url = self::$extra_data; | |
- | |
- $data = array( | |
- 'SessionId' => $sid | |
- ); | |
- | |
- $return = false; | |
- if (empty($url)) { | |
- return $return; | |
- } | |
- $response = Http::post($url . 'logout', json_encode($data), $data_url); | |
- $result = (array) json_decode($response); | |
- | |
- if (!empty($result['Success'])) { | |
- $return = $result['Success']; | |
- } | |
- | |
- return $return; | |
- } | |
- | |
/** | |
* Gets the delivery zone. | |
* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/app/addons/rus_pickpoint/Tygh/Shippings/Services/Pickpoint.php b/app/addons/rus_pickpoint/Tygh/Shippings/Services/Pickpoint.php | |
index ea51e43706..d691d5046a 100644 | |
--- a/app/addons/rus_pickpoint/Tygh/Shippings/Services/Pickpoint.php | |
+++ b/app/addons/rus_pickpoint/Tygh/Shippings/Services/Pickpoint.php | |
@@ -321,7 +321,6 @@ class Pickpoint implements IService | |
$return['error'] .= $error . '; '; | |
} | |
} | |
- RusPickpoint::logout(); | |
return $return; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment