This commit is contained in:
Marko 2024-03-22 15:02:12 +01:00
parent fb293a6b9a
commit cb39a8b93b
No known key found for this signature in database

View File

@ -366,7 +366,7 @@ class Hiltes
* @param $data * @param $data
* @return bool * @return bool
*/ */
public function sendOrderToHiltes($data) public function sendOrderToHiltes($data): bool
{ {
$url = $this->hiltesApiUrl . '/api/WebSale/import'; $url = $this->hiltesApiUrl . '/api/WebSale/import';
@ -374,18 +374,17 @@ class Hiltes
//dump($param); //dump($param);
$r = $this->sendToHiltes($url, $param, true); $r = $this->sendToHiltes($url, $param, true);
dump($r);
if ($r === false) { if ($r === false) {
dump('Send Order Error ' . __LINE__); $this->logger->error('Send Order Error ' . $r . __LINE__);
return false; return false;
} }
$t = json_decode($r, true); $t = json_decode($r, true);
if ($t['Success']) { if ($t['Success']) {
return true; return true;
} else { } else {
dump($r); $this->logger->error('Send Order Error ' . var_dump($t['Message']) . __LINE__);
return false; return false;
} }
} }