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; } }