fix dump
This commit is contained in:
parent
fb293a6b9a
commit
cb39a8b93b
@ -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;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user