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