From cb39a8b93b601a87ee1d3b515b2feecb2b428ee7 Mon Sep 17 00:00:00 2001 From: Marko <52066939+HeX87@users.noreply.github.com> Date: Fri, 22 Mar 2024 15:02:12 +0100 Subject: [PATCH] fix dump --- src/Helper/Hiltes.php | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/src/Helper/Hiltes.php b/src/Helper/Hiltes.php index c7cd9a7..b8d26c9 100644 --- a/src/Helper/Hiltes.php +++ b/src/Helper/Hiltes.php @@ -366,7 +366,7 @@ class Hiltes * @param $data * @return bool */ - public function sendOrderToHiltes($data) + public function sendOrderToHiltes($data): bool { $url = $this->hiltesApiUrl . '/api/WebSale/import'; @@ -374,18 +374,17 @@ class Hiltes //dump($param); $r = $this->sendToHiltes($url, $param, true); - dump($r); - if ($r === false) { - dump('Send Order Error ' . __LINE__); + $this->logger->error('Send Order Error ' . $r . __LINE__); return false; } $t = json_decode($r, true); + if ($t['Success']) { return true; } else { - dump($r); + $this->logger->error('Send Order Error ' . var_dump($t['Message']) . __LINE__); return false; } }